diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py index e21a4dfd..b7610b07 100644 --- a/src/octoprint/server/util/tornado.py +++ b/src/octoprint/server/util/tornado.py @@ -207,7 +207,7 @@ class UploadStorageFallbackHandler(RequestlessExceptionLoggingMixin): if self.is_multipart(): if not self._bytes_left: # we don't support requests without a content-length - raise tornado.web.HTTPError(400, log_message="No Content-Length supplied") + raise tornado.web.HTTPError(411, log_message="No Content-Length supplied") # extract the multipart boundary fields = self._content_type.split(";")