(self, code: str, detail: str, status_code: int = status.HTTP_400_BAD_REQUEST)
| 25 | |
| 26 | class CustomHttpException(HTTPException): |
| 27 | def __init__(self, code: str, detail: str, status_code: int = status.HTTP_400_BAD_REQUEST): |
| 28 | self.code = code |
| 29 | super().__init__(status_code, detail) |
| 30 | |
| 31 | @property |
| 32 | def as_dict(self) -> dict: |