Spaces:
Running
Running
Download app/copilot/errors.py from basyx/MediaRouter: direct link, hf CLI and curl.
- Browser
- Download file 823 Bytes
-
https://huggingface.co/spaces/basyx/MediaRouter/resolve/main/app/copilot/errors.py
- Command line
-
hf download hf://spaces/basyx/MediaRouter/app/copilot/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/basyx/MediaRouter/resolve/main/app/copilot/errors.py
823 Bytes
| from app.core.exceptions import MediaAPIError | |
| class CopilotInvalidRequestError(MediaAPIError): | |
| code = "COPILOT_INVALID_REQUEST" | |
| status_code = 422 | |
| class CopilotUnsupportedIntentError(MediaAPIError): | |
| code = "COPILOT_UNSUPPORTED_INTENT" | |
| status_code = 422 | |
| class CopilotRunNotFoundError(MediaAPIError): | |
| code = "COPILOT_RUN_NOT_FOUND" | |
| status_code = 404 | |
| class CopilotRunConflictError(MediaAPIError): | |
| code = "COPILOT_RUN_CONFLICT" | |
| status_code = 409 | |
| class CopilotConfirmationRequiredError(MediaAPIError): | |
| code = "COPILOT_CONFIRMATION_REQUIRED" | |
| status_code = 409 | |
| class CopilotPermissionError(MediaAPIError): | |
| code = "COPILOT_ACTION_FORBIDDEN" | |
| status_code = 403 | |
| class CopilotCapabilityError(MediaAPIError): | |
| code = "COPILOT_CAPABILITY_UNAVAILABLE" | |
| status_code = 422 | |