debug-jwt

This commit is contained in:
2022-11-01 00:17:00 +03:00
parent 6c97d39e24
commit af2b94eca4
2 changed files with 22 additions and 7 deletions

View File

@@ -16,6 +16,11 @@ class InvalidToken(BaseHttpException):
message = "403 Invalid Token"
class Unauthorized(BaseHttpException):
code = 401
message = "401 Unauthorized"
class ObjectNotExist(BaseHttpException):
code = 404
message = "404 Object Does Not Exist"
@@ -23,9 +28,9 @@ class ObjectNotExist(BaseHttpException):
class OperationNotAllowed(BaseHttpException):
code = 403
message = "403 Operation is not allowed"
message = "403 Operation Is Not Allowed"
class InvalidPassword(BaseHttpException):
code = 401
message = "401 Invalid Password"
code = 403
message = "403 Invalid Password"