Errors
One error envelope for every failure, and what each status code means here.
The envelope
Every error is JSON with the same fields, plus anything specific the situation adds.
{
"statusCode": 400,
"error": "BadRequestException",
"message": "TK1 operates 2 legs on 2026-09-12. Pass \"origin\" to choose one.",
"path": "/v1/subscriptions",
"timestamp": "2026-09-12T11:06:12.138Z",
"requestId": "5129839a-26c5-49d2-bf4c-eb4f47d10a03",
"legs": [
{ "origin": "SAW", "destination": "AMS", "carrier": "AJA", "scheduledDepartureLocal": "08:45", "flightId": "1407278900" },
{ "origin": "ISL", "destination": "JFK", "carrier": "TK", "scheduledDepartureLocal": "14:10", "flightId": "1407266450" }
]
}message is a string, or an array of strings when several validation rules failed at once. Quote requestId when you write to us about a request; it is the id in our logs.
Status codes
| Code | When |
|---|---|
400 | The request is malformed, or a value failed validation. For an ambiguous flight number the body carries legs. |
401 | No key, or a key that is invalid, revoked or expired. |
402 | A new subscription would pass the period's watched flights. "code": "watched_flight_limit": the key's plan caps them (Free: 3). "code": "overage_cap_reached": on a paid plan, the cap on a period's extra flights set on the dashboard's Plan page would be passed, and the body adds capCents. Both carry limit, used and resetsAt. "code": "credits_exhausted": on Free, the account's prepaid credits are used or expired as well; the body carries balance and expiresAt instead. The refused subscription is not counted, billed or paid for with a credit, and the ones you have keep running. See when watched flights run out. |
403 | "code": "account_suspended": the key's account is suspended, so its keys and its dashboard stop working until the suspension is lifted. Write to [email protected] if you think it is a mistake. Retrying does not help. |
404 | No such flight on that date, no leg matching the selector, or no such subscription for this key. |
409 | A subscription for this flight and URL already exists under the same Idempotency-Key. |
429 | A quota window is full. The body names the window and retryAfterSeconds; Retry-After is set. See quotas. |
502 | The upstream data source failed after retries. Safe to retry after a short wait; watched flights are not affected, polling retries by itself. |
503 | Temporarily unavailable, for example during a deploy. Retry with backoff. |
Retrying
429, 502 and 503 are worth retrying; the first with the Retry-After value, the others after a second or two with backoff. 400, 401 and 404 will answer the same way until something in the request changes, and 402 until the month rolls over, the plan changes or, for overage_cap_reached, the cap is raised or removed, or for credits_exhausted, the account tops up.