Download api/controllers/files/error.py from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/controllers/files/error.py
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/api/controllers/files/error.py
-
curl -L -o error.py https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/controllers/files/error.py
197 Bytes
| from libs.exception import BaseHTTPException | |
| class UnsupportedFileTypeError(BaseHTTPException): | |
| error_code = "unsupported_file_type" | |
| description = "File type not allowed." | |
| code = 415 | |