error object:
The wording of error.message can change. Handle errors by HTTP status code rather than matching the message text.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Error response format and HTTP status codes.
error object:
{
"error": {
"message": "…",
"type": "…",
"code": "…"
}
}
| Status | Meaning |
|---|---|
400 | Invalid request parameters |
401 | API key missing or invalid |
404 | Path does not exist, usually a typo in the URL |
429 | Rate limit exceeded |
500 | Internal server error |
503 | No upstream is currently available for this model, or the model name does not exist. Retry later or switch models |