update code of dash and report of cont_client and devlp abstract of qty
This commit is contained in:
@@ -1,11 +1,29 @@
|
||||
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
|
||||
# ==========================
|
||||
# 2xx Success
|
||||
# ==========================
|
||||
OK = 200 # Request successful
|
||||
CREATED = 201 # Resource created successfully
|
||||
ACCEPTED = 202 # Request accepted for processing
|
||||
NO_CONTENT = 204 # Success, no response body
|
||||
|
||||
# ==========================
|
||||
# 4xx Client Errors
|
||||
# ==========================
|
||||
BAD_REQUEST = 400 # Invalid request
|
||||
UNAUTHORIZED = 401 # Authentication required
|
||||
FORBIDDEN = 403 # Access denied
|
||||
NOT_FOUND = 404 # Resource not found
|
||||
METHOD_NOT_ALLOWED = 405 # HTTP method not allowed
|
||||
CONFLICT = 409 # Resource conflict (e.g., duplicate)
|
||||
UNPROCESSABLE_ENTITY = 422 # Validation error
|
||||
TOO_MANY_REQUESTS = 429 # Rate limit exceeded
|
||||
|
||||
# ==========================
|
||||
# 5xx Server Errors
|
||||
# ==========================
|
||||
INTERNAL_SERVER_ERROR = 500 # Internal server error
|
||||
NOT_IMPLEMENTED = 501 # Feature not implemented
|
||||
BAD_GATEWAY = 502 # Invalid response from upstream server
|
||||
SERVICE_UNAVAILABLE = 503 # Server temporarily unavailable
|
||||
GATEWAY_TIMEOUT = 504 # Upstream server timeout
|
||||
@@ -1,17 +1,65 @@
|
||||
class SuccessMessage:
|
||||
FETCHED = "Data fetched successfully"
|
||||
CREATED = "Resource created successfully"
|
||||
UPDATED = "Resource updated successfully"
|
||||
DELETED = "Resource deleted successfully"
|
||||
LOGIN = "Login successful"
|
||||
LOGOUT = "Logout successful"
|
||||
FETCHED = "Data fetched successfully."
|
||||
CREATED = "Resource created successfully."
|
||||
UPDATED = "Resource updated successfully."
|
||||
DELETED = "Resource deleted successfully."
|
||||
|
||||
SAVED = "Data saved successfully."
|
||||
IMPORTED = "Data imported successfully."
|
||||
EXPORTED = "Data exported successfully."
|
||||
UPLOADED = "File uploaded successfully."
|
||||
DOWNLOADED = "File downloaded successfully."
|
||||
|
||||
LOGIN = "Login successful."
|
||||
LOGOUT = "Logout successful."
|
||||
PASSWORD_CHANGED = "Password changed successfully."
|
||||
PASSWORD_RESET = "Password reset successfully."
|
||||
|
||||
EMAIL_SENT = "Email sent successfully."
|
||||
STATUS_UPDATED = "Status updated successfully."
|
||||
|
||||
|
||||
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"
|
||||
INVALID_REQUEST = "Invalid request."
|
||||
INVALID_DATA = "Invalid data provided."
|
||||
VALIDATION_FAILED = "Validation failed."
|
||||
|
||||
UNAUTHORIZED = "Unauthorized access."
|
||||
FORBIDDEN = "Access denied."
|
||||
NOT_FOUND = "Resource not found."
|
||||
METHOD_NOT_ALLOWED = "Method not allowed."
|
||||
|
||||
DUPLICATE_ENTRY = "Duplicate record found."
|
||||
RECORD_EXISTS = "Record already exists."
|
||||
RECORD_NOT_FOUND = "Record does not exist."
|
||||
|
||||
FILE_NOT_FOUND = "File not found."
|
||||
FILE_UPLOAD_FAILED = "File upload failed."
|
||||
FILE_IMPORT_FAILED = "File import failed."
|
||||
|
||||
DATABASE_ERROR = "Database operation failed."
|
||||
INTERNAL_SERVER_ERROR = "Internal server error."
|
||||
SERVICE_UNAVAILABLE = "Service temporarily unavailable."
|
||||
|
||||
LOGIN_FAILED = "Invalid username or password."
|
||||
SESSION_EXPIRED = "Session expired. Please login again."
|
||||
|
||||
PASSWORD_MISMATCH = "Passwords do not match."
|
||||
INVALID_TOKEN = "Invalid or expired token."
|
||||
|
||||
|
||||
class WarningMessage:
|
||||
NO_DATA_FOUND = "No data found."
|
||||
ALREADY_EXISTS = "Record already exists."
|
||||
UNSAVED_CHANGES = "You have unsaved changes."
|
||||
DELETE_CONFIRMATION = "Are you sure you want to delete the selected record(s)?"
|
||||
INVALID_FILTER = "No records match the selected filters."
|
||||
|
||||
|
||||
class InfoMessage:
|
||||
PROCESSING = "Request is being processed."
|
||||
LOADING = "Loading data..."
|
||||
SAVING = "Saving data..."
|
||||
DELETING = "Deleting record..."
|
||||
IMPORTING = "Importing data..."
|
||||
EXPORTING = "Preparing export..."
|
||||
Reference in New Issue
Block a user