Guides
Errors
One error shape, and which statuses are safe to retry.
Every failure, on every endpoint, returns the same object. There is no status field inside it; the HTTP status code says what happened.
{
"error": "Missing required parameter: username"
}| Status | Meaning | Retry? |
|---|---|---|
| 400 | Missing or invalid query parameter { "error": "username is required" } | No. Fix the request first. |
| 401 | Missing or invalid { "error": "Invalid API key." } | No. Check the key. |
| 403 | Your plan does not include this endpoint, or your access is paused. | — |
| 404 | The requested account or post does not exist { "error": "This account does not exist." } | No. The account or post doesn't exist. |
| 429 | Request quota exceeded — contact light@airaa.xyz to upgrade your plan { "error": "Request quota exceeded — contact light@airaa.xyz to upgrade your plan." } | After your quota resets, or talk to us. |
| 500 | Server misconfiguration — API key environment variable not set { "error": "Server configuration error" } | No. Tell us; it's on our side. |
| 502 | Upstream provider temporarily unavailable — please try again { "error": "Upstream service unavailable" } | Yes, with exponential backoff. |
| 503 | Temporary outage. Retry after { "error": "Service temporarily unavailable." } | — |
| 504 | Request timed out — please try again { "error": "Request timed out — please try again." } | Yes, with exponential backoff. |
502 and 504 mean the upstream platform was slow or unavailable; retry with exponential backoff. 400, 401 and 404 will return the same thing however often you retry. A 429 clears when your quota resets; if you're hitting it regularly, talk to us about a larger plan.