Error Response Format
All errors follow a consistent format:HTTP Status Codes
Error Types
401 Unauthorized
x-api-keyheader is missing- API key is invalid or malformed
- API key has been revoked
403 Forbidden
- Endpoint is private/internal
- API key doesn’t have permission
404 Not Found
- Typo in endpoint path
- Endpoint was deleted
- Wrong tenant subdomain
422 Validation Error
429 Rate Limited
500 Server Error
- Note the
request_id - Retry the request (may be transient)
- Contact support with the request ID if persistent
502 Bad Gateway
- LLM provider (OpenAI, Anthropic) is down
- Provider rate limits exceeded
- Invalid provider API key in settings
504 Timeout
- Very long input text
- Complex prompt requiring extended processing
- LLM provider slowdown
- Reduce input size
- Simplify the prompt
- Increase client timeout setting
Error Handling Best Practices
Implement Exponential Backoff
Log Request IDs
Handle Specific Errors
Testing Error Handling
Test your error handling by:- Missing field — Omit a required field
- Invalid type — Send string instead of number
- Invalid key — Use a fake API key
- Rate limit — Send many rapid requests
Next Steps
Logs & Monitoring
Debug issues using execution logs
Support
Contact support with request IDs

