debug-jwt
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user