added new of dashboard and log apply on routes
This commit is contained in:
11
app/constants/http_status.py
Normal file
11
app/constants/http_status.py
Normal file
@@ -0,0 +1,11 @@
|
||||
class HTTPStatus:
|
||||
OK = 200
|
||||
CREATED = 201
|
||||
BAD_REQUEST = 400
|
||||
UNAUTHORIZED = 401
|
||||
FORBIDDEN = 403
|
||||
NOT_FOUND = 404
|
||||
METHOD_NOT_ALLOWED = 405
|
||||
CONFLICT = 409
|
||||
UNPROCESSABLE_ENTITY = 422
|
||||
INTERNAL_SERVER_ERROR = 500
|
||||
17
app/constants/messages.py
Normal file
17
app/constants/messages.py
Normal file
@@ -0,0 +1,17 @@
|
||||
class SuccessMessage:
|
||||
FETCHED = "Data fetched successfully"
|
||||
CREATED = "Resource created successfully"
|
||||
UPDATED = "Resource updated successfully"
|
||||
DELETED = "Resource deleted successfully"
|
||||
LOGIN = "Login successful"
|
||||
LOGOUT = "Logout successful"
|
||||
|
||||
|
||||
class ErrorMessage:
|
||||
INVALID_REQUEST = "Invalid request data"
|
||||
UNAUTHORIZED = "Unauthorized access"
|
||||
FORBIDDEN = "Access forbidden"
|
||||
NOT_FOUND = "Resource not found"
|
||||
VALIDATION_FAILED = "Validation failed"
|
||||
INTERNAL_ERROR = "Internal server error"
|
||||
DUPLICATE_ENTRY = "Duplicate record found"
|
||||
Reference in New Issue
Block a user