Skip to main content

API Errors

Error Response Format

{
"error": {
"type": "authentication_error",
"message": "Invalid API key",
"code": "invalid_api_key",
"requestId": "req_abc123"
}
}

HTTP Status Codes

StatusCodeDescription
400validation_errorInvalid request parameters
401authentication_errorMissing or invalid API key
403authentication_errorInsufficient permissions
404not_foundResource not found
429rate_limit_errorToo many requests
500api_errorInternal server error
502api_errorUpstream error
503api_errorService temporarily unavailable
504api_errorGateway timeout

Error Type Reference

TypeDescriptionCommon Causes
authentication_errorAPI key issuesInvalid key, expired key, wrong environment
validation_errorInvalid requestMissing field, wrong type, out of range
rate_limit_errorRate limit exceededToo many requests per second
api_errorServer errorTemporary outage, network issue
connection_errorNetwork failureDNS resolution, timeout, SSL error

Rate Limiting

  • Default rate limit: varies by endpoint
  • Exceeded: returns 429 with Retry-After header
  • Solution: implement exponential backoff

SDK Error Handling

All SDKs provide typed exceptions for each error type. See the Error Handling Guide for details.