Download backend/utils/exceptions.py from KaustavMP/JalGuard: direct link, hf CLI and curl.
- Browser
- Download file 193 Bytes
-
https://huggingface.co/spaces/KaustavMP/JalGuard/resolve/main/backend/utils/exceptions.py
- Command line
-
hf download hf://spaces/KaustavMP/JalGuard/backend/utils/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/KaustavMP/JalGuard/resolve/main/backend/utils/exceptions.py
193 Bytes
| class AppError(Exception): | |
| def __init__(self, message: str, status_code: int = 400): | |
| super().__init__(message) | |
| self.message = message | |
| self.status_code = status_code | |