Spaces:
Running
Running
| 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 | |