You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/handler/unrouted_handler.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ var (
62
62
ErrUploadInterrupted=NewError("ERR_UPLOAD_INTERRUPTED", "upload has been interrupted by another request for this upload resource", http.StatusBadRequest)
63
63
ErrServerShutdown=NewError("ERR_SERVER_SHUTDOWN", "request has been interrupted because the server is shutting down", http.StatusServiceUnavailable)
64
64
ErrOriginNotAllowed=NewError("ERR_ORIGIN_NOT_ALLOWED", "request origin is not allowed", http.StatusForbidden)
65
+
ErrUnexpectedEOF=NewError("ERR_UNEXPECTED_EOF", "server expected to receive more bytes", http.StatusBadRequest)
65
66
66
67
// These two responses are 500 for backwards compatability. Clients might receive a timeout response
67
68
// when the upload got interrupted. Most clients will not retry 4XX but only 5XX, so we responsd with 500 here.
0 commit comments