Download api/controllers/console/files/errors.py from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 627 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/controllers/console/files/errors.py
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/api/controllers/console/files/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/api/controllers/console/files/errors.py
627 Bytes
| from libs.exception import BaseHTTPException | |
| class FileTooLargeError(BaseHTTPException): | |
| error_code = "file_too_large" | |
| description = "File size exceeded. {message}" | |
| code = 413 | |
| class UnsupportedFileTypeError(BaseHTTPException): | |
| error_code = "unsupported_file_type" | |
| description = "File type not allowed." | |
| code = 415 | |
| class TooManyFilesError(BaseHTTPException): | |
| error_code = "too_many_files" | |
| description = "Only one file is allowed." | |
| code = 400 | |
| class NoFileUploadedError(BaseHTTPException): | |
| error_code = "no_file_uploaded" | |
| description = "Please upload your file." | |
| code = 400 | |