17 lines
215 B
Python
17 lines
215 B
Python
|
from enum import Enum
|
||
|
|
||
|
|
||
|
class STATUS(Enum):
|
||
|
SUCCESS = 0
|
||
|
ERROR = 1
|
||
|
NOT_AVAILABLE = 2
|
||
|
NOT_FOUND = 3
|
||
|
NOT_AUTHORIZED = 4
|
||
|
NOT_ALLOWED = 5
|
||
|
|
||
|
def __str__(self):
|
||
|
return str(self.value)
|
||
|
|
||
|
|
||
|
|