Error response format
HTTP status codes
Error codes
Authentication errors (401)
Authorization errors (403)
Validation errors (400)
Rate limit errors (429)
Upstream errors (502, 504)
Always include the
request_id when contacting support about upstream errors.Agent refusals vs errors
Refusals are not errors. When an agent refuses a request, you’ll get a200 OK with a refusal in the body:
Error handling best practices
1. Always check for errors
2. Implement retries for transient errors
3. Log request IDs
Getting help
If you’re seeing errors you can’t resolve:- Check the status page for outages
- Review the agent’s prospectus for input requirements
- Contact support with your
request_id

