Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: TT-429 created enums for response messages
  • Loading branch information
ararcos committed Nov 26, 2021
commit 367c3e261ebcccb58ed03c69a9a03e42d4e8c641
2 changes: 2 additions & 0 deletions V2/time_tracker/utils/enums/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# flake8: noqa
from .response_enums import ResponseEnums
10 changes: 10 additions & 0 deletions V2/time_tracker/utils/enums/response_enums.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from enum import Enum


class ResponseEnums(Enum):
INVALID_ID = "Invalid Format ID"
NOT_FOUND = "Not found"
NOT_CREATED = "could not be created"
INCORRECT_BODY = "Incorrect body"

MIME_TYPE = "application/json"