Skip to content

Commit

Permalink
feat: Add extra error codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Delsin Van Grembergen committed Oct 29, 2024
1 parent 51ccf7c commit 7272a3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/elody/error_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class ErrorCode(Enum):
ALREADY_PARENT = "0007"
METADATA_KEY_UNDEFINED = "0008"
ENTITY_HAS_NO_TENANT = "0009"
MEDIAFILE_NOT_FOUND = "0010"

# Auth error codes
INVALID_CREDENTIALS = "1001"
Expand All @@ -40,6 +41,12 @@ class ErrorCode(Enum):
FILE_ACCESS_DENIED = "4002"
FILE_CORRUPTED = "4003"
NO_FILENAME_SPECIFIED = "4004"
NO_TICKET_ID_SPECIFIED = "4005"
TICKET_NOT_FOUND = "4006"
TICKET_EXPIRED = "4007"
PROVIDE_MEDIAFILE_ID_OR_TICKET_ID = "4008"
DUPLICATE_FILE = "4009"
NO_BUCKET_SPECIFIED = "4010"

# Validation error codes
INVALID_INPUT = "5001"
Expand Down

0 comments on commit 7272a3d

Please sign in to comment.