Errors
Errors are a JSON object with a detail field: a sentence for our own refusals, a list of field errors for schema validation.
| Status | detail | When |
|---|---|---|
| 400 | a sentence | A malformed object path (absolute, with .. or a backslash), a start or end off the hour, a window over the limit, a format the dataset is not offered in, an unknown series or market, too many files or rows. On a purchase: a window whose end is before its start, a schema code nothing is called (the message names the one you meant), or more schemas than one download may carry. |
| 401 | missing or invalid api key | No Authorization header, a malformed key, or a revoked one. Also a wrong email or password at login. |
| 402 | plan '...' does not cover ..., or a basket the balance does not reach | The path or dataset is paid and the plan in force is Free, including a paid plan past its expiry. On POST /v1/downloads it means something else and carries a body rather than a sentence: the shortfall in micros, the quote it came from, and the basket id to top up against. The basket is kept, so paying finishes it without the request being made again. |
| 403 | ... is newer than this plan reads | The plan covers the dataset, but the hour is past its freshness cutoff. The same rows arrive later. |
| 404 | not found | Unknown market, file, key or order. |
| 409 | conflict | Email already registered, already on that plan, an order already open, a selection with nothing sellable in it, a basket id that belongs to another account - or a stable URL for an hour with several parts, whose body lists each part's own URL. |
| 413 | more markets than one basket may carry | The selection is larger than a single purchase takes. Narrow the window or the series and buy it in parts. |
| 422 | a list of field errors | A field is missing or has the wrong type. |
| 429 | quota or rate limit | The daily signed-URL quota is used up, or the key's requests a minute are; the second carries Retry-After. |