From 42b564de1c4e23cadf05f34d5b6fb066a3156d48 Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Wed, 1 Feb 2023 17:16:08 -0500 Subject: [PATCH] Fix error codes --- app/classes/web/upload_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/classes/web/upload_handler.py b/app/classes/web/upload_handler.py index 751884c2..11e1c4b8 100644 --- a/app/classes/web/upload_handler.py +++ b/app/classes/web/upload_handler.py @@ -159,7 +159,7 @@ class UploadHandler(BaseHandler): if not superuser: return self.finish_json( - 413, + 401, { "status": "error", "error": "UNAUTHORIZED ACCESS", @@ -175,7 +175,7 @@ class UploadHandler(BaseHandler): ): return self.finish_json( - 413, + 415, { "status": "error", "error": "TYPE ERROR",