new api service and logic implemented
This commit is contained in:
13
ApiLayers/ErrorHandlers/base.py
Normal file
13
ApiLayers/ErrorHandlers/base.py
Normal file
@@ -0,0 +1,13 @@
|
||||
class BaseError:
|
||||
NOT_CREATED: int = 405
|
||||
NOT_DELETED: int = 405
|
||||
NOT_UPDATED: int = 405
|
||||
NOT_LISTED: int = 404
|
||||
NOT_FOUND: int = 404
|
||||
ALREADY_EXISTS: int = 400
|
||||
IS_NOT_CONFIRMED: int = 405
|
||||
NOT_AUTHORIZED: int = 401
|
||||
NOT_VALID: int = 406
|
||||
NOT_ACCEPTABLE: int = 406
|
||||
INVALID_DATA: int = 422
|
||||
UNKNOWN_ERROR: int = 502
|
||||
Reference in New Issue
Block a user