TokenRouteDocs
Sign in

Errors

Error format and status codes.

Errors return a JSON body with an error object:

json
{ "error": { "message": "Insufficient credits", "code": 402 } }
StatusMeaning
400Malformed request
401Missing or invalid API key
402Insufficient balance or key limit reached
429Rate limited by the upstream provider
502 / 503Provider unavailable or not configured