mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix error codes
This commit is contained in:
parent
bb482b8381
commit
42b564de1c
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user