error code and a human-readable message.
Error format
Error codes
| HTTP Status | Error Code | Description |
|---|---|---|
| 400 | validation_error | The request body or parameters are invalid |
| 401 | unauthorized | The API key is missing, invalid, or revoked |
| 402 | insufficient_credits | Not enough credits to run the requested operation |
| 403 | forbidden | The API key does not have the required scope |
| 404 | not_found | The requested deployment, thread, or run does not exist |
| 409 | deployment_not_ready | The deployment is still provisioning |
| 422 | invalid_skill | A skill file could not be fetched or parsed |
| 422 | invalid_secret_ref | A secret reference does not exist or is not accessible |
| 429 | rate_limited | Too many requests — back off and retry |
| 500 | server_error | An unexpected error occurred on the server |

