generation_id: a stable identifier you can share with support for faster investigation.status_code: mirrors the HTTP status to make retries decisions easier.error: a machine-readable error code (for examplevalidation_error).error_type: high-level classification (userorsystem).description: a human-friendly explanation safe to display to end users.details(optional): structured validation errors whenerrorisvalidation_error.
Common error codes
| Type | HTTP Status | Description |
|---|---|---|
authentication_error | 401 | Missing or invalid API key. |
authorization_error | 403 | Key lacks permission to access this resource. |
not_found_error | 404 | The endpoint or resource could not be found. |
rate_limit_error | 429 | Too many requests. Retry after the specified delay. |
validation_error | 400 | Invalid parameters or request body. |
provider_error | 502 | Upstream model provider failed to respond correctly. |
server_error | 500 | Unexpected issue within the Gateway. |
Retry strategy
- 400-series errors: Fix your request before retrying.
- 429: Implement exponential backoff and honour the
Retry-Afterheader. - 500-series errors: Retry safely after a short delay.
Troubleshooting tips
- Check the Gateway status page for ongoing incidents.
- Review your request payloads — strict JSON validation is enforced.
- Use the
generation_id(from the response body) when contacting support as this helps us identify your request.
Related resources
Authentication
How to authenticate with your API key securely.
Health Endpoint
Test connectivity and verify Gateway uptime.