MenuErrors

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
{
  "error": "Missing required parameter: username"
}
StatusMeaningRetry?
400

Missing or invalid query parameter

{ "error": "username is required" }
No. Fix the request first.
401

Missing or invalid X-API-KEY header

{ "error": "Invalid API key." }
No. Check the key.
403

Your plan does not include this endpoint, or your access is paused. code is endpoint_not_enabled, subscription_inactive or account_suspended. Does not use quota

—
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 Retry-After when it is sent. Does not use quota

{ "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.

esc

Pages

Endpoints

↑↓ to move↵ to open