Coverage for app/ddd/domain/enum/error_code.py: 100%
10 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
1from enum import Enum, unique
4@unique
5class ErrorCode(Enum):
6 NO_ERROR = "000"
7 UNAUTHORIZED = "401"
8 NOT_FOUND = "404"
9 CONFLICT = "409"
11 @property
12 def str_value(self) -> str:
13 return str(self.value)