Spaces:
Running
Running
Download backend/common/errors.py from OpenTogether/photo-gallery: direct link, hf CLI and curl.
- Browser
- Download file 177 Bytes
-
https://huggingface.co/spaces/OpenTogether/photo-gallery/resolve/main/backend/common/errors.py
- Command line
-
hf download hf://spaces/OpenTogether/photo-gallery/backend/common/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/OpenTogether/photo-gallery/resolve/main/backend/common/errors.py
177 Bytes
| class AppError(Exception): | |
| def __init__(self, status, code, message): | |
| super().__init__(message) | |
| self.status, self.code, self.message = status, code, message | |