Errors
401, 429 and 503 response handling
API reference · Code and response examples
Error response format
503 · application/json
{
"error": "FEED_UNAVAILABLE"
}Status codes
| HTTP | Error code | Next step |
|---|---|---|
400 | UNKNOWN_FEED / INVALID_INTERVAL | Use justmarkets and M1, M5 or M15. |
401 | UNAUTHORIZED | Create or replace the key; verify the Authorization header. |
429 | RATE_LIMITED | Wait for the seconds indicated by the Retry-After response header. |
403 | ENTITLEMENT_EXPIRED | Check your access period and billing status. |
503 | HISTORY_UNAVAILABLE | Candle history is unavailable. Retry with bounded backoff. |
429 | QUOTA_EXCEEDED | Annual allowance exhausted; no automatic overage charge. |
503 | FEED_UNAVAILABLE | Check feed status and wait for fresh data. |
Retry deliberately
Do not retry invalid credentials or quota exhaustion in a loop. For rate limits, respect retry timing. For stale data, back off and inspect the status response.
Quotes, candles and status can return HTTP 200 with stale: true. Inspect freshness independently of HTTP status. Successful data responses include x-ratelimit-limit and x-quota-remaining; error responses may omit these headers.