diff --git a/Dockerfile b/Dockerfile index 046f71a1..1b08c3bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,4 +33,5 @@ RUN CGO_ENABLED=0 go install . FROM scratch COPY --from=frontend /app/dist/out/default /static/ COPY --from=backend /go/bin/jupyter-apis /jupyter-apis +EXPOSE 5000 ENTRYPOINT [ "/jupyter-apis" ] diff --git a/httputils.go b/httputils.go index 645c3a20..5ee7a529 100644 --- a/httputils.go +++ b/httputils.go @@ -29,7 +29,7 @@ func (s *server) error(w http.ResponseWriter, r *http.Request, err error) { log.Printf("returning error response: %v", err) w.Header().Add("Content-Type", "application/json") - w.WriteHeader(http.StatusInternalServerError) + w.WriteHeader(http.StatusOK) encoder := json.NewEncoder(w) werr := encoder.Encode(APIResponse{ Success: false,