Errors
Every HTTP status the gateway returns, the exact error bodies, which failures are free, and how to retry safely.
Dataloom APIs use standard HTTP status codes. Failed calls never reach the billing path — only successful work is charged.
Status codes
| Status | Meaning | Billed? |
|---|---|---|
200 | Success — the response body contains your data | Yes |
400 | Validation failure — a required parameter is missing or malformed. The body comes from the API; each endpoint's exact error bodies are on its reference page | No |
401 | Missing, invalid, or revoked API key | No |
402 | Insufficient credit balance for this call — top up in the console | No |
403 | Account email not verified yet — verify to unlock the key | No |
404 | Unknown path — check the endpoint's reference page | No |
429 | Rate limited — slow down and retry (see rate limits) | No |
500 | Gateway-side failure while checking the request | No |
502 / 503 | The upstream API could not be reached | No — refunded |
504 | The upstream API timed out | No — refunded |
Anything the upstream API itself returns (including upstream 4xx/5xx not
in this table) passes through with its original status and body and costs 0
credits.
Error bodies — gateway rejections
Gateway-generated rejections (401, 402, 403, 429) share one JSON
envelope:
{
"error": "Payment Required",
"message": "Insufficient credit balance. Please top up your account.",
"service": "Website Insights",
"remainingBalance": 0
}| Field | Description |
|---|---|
error | HTTP-style title. Unauthorized for 401 and 403, Payment Required for 402, Too Many Requests for 429. Branch on the status code — never on this title. |
message | Human-readable reason for this specific rejection. |
service | Name of the service that received the request. |
remainingBalance | Your credit balance, present when it is known (402, 429). |
Every rejection you can hit
| Status | message | What to do |
|---|---|---|
401 | Invalid or missing API key | Send Authorization: Bearer <key> — see authentication |
401 | API key has been revoked | Create a new key in the console; update your services |
401 | Authentication failed | Rare gateway-side failure — retry once, then contact support |
402 | Insufficient credit balance. Please top up your account. | Top up in the console, or wait for the next monthly grant |
403 | API key is pending verification. Please verify your email. | Verify your email; the key works immediately after |
429 | Rate limit exceeded. Your plan limit is N request(s) per second. | Back off and smooth your request rate — see rate limits |
429 | Playground rate limit exceeded. Limit is N request(s) per minute. | Console playground throttle — wait a minute |
429 | Playground daily quota exceeded (max 20 calls/day). Verify email for unlimited access. | Verify your email to lift the daily playground cap |
Rejection responses always carry X-Gateway-Credit-Cost: 0; rate-limit
rejections additionally carry Retry-After, X-RateLimit-Limit, and
X-RateLimit-Remaining — see response headers.
Upstream errors
When the gateway cannot reach the API itself, it returns 502 (unreachable)
or 504 (timeout) with this body:
{
"messages": "The API is unreachable, please contact the API provider",
"info": "Your Client (working) ---> Gateway (working) ---> API (not working)"
}The field is messages, plural — a historical quirk of the gateway contract,
so parse it accordingly. Endpoints that define their own 5xx example bodies
override this default; the endpoint's reference page always shows the exact
body to expect.
Reserved credits are refunded automatically on 502/504 — the refund shows
up in your credit ledger, and you are never charged for a call you did not
receive (see billing).
Retrying safely
- On
429, honor theRetry-Afterheader, then back off exponentially with jitter. Do not hammer the endpoint — rejected requests are free, but they still count against your rate limit window. - On
5xx, retrying the same request is safe: the failed attempt cost 0 credits, and a successful retry is charged once. - On
400, fix the request — the parameter tables on each reference page list every parameter's type, requiredness, and accepted values.
Request IDs
Every call is recorded with a request ID. Each credit charge and refund in your console ledger is keyed by it, so you can reconcile exactly which call spent which credit. If something looks wrong, quote the request ID from your ledger when writing to [email protected] — it lets us find the exact call in the gateway logs.
Per-endpoint error examples
This page documents the gateway-wide contract. Each API can also return
endpoint-specific errors (for example, 400 bodies with field-level
validation details) — every endpoint's reference page lists its exact
response examples, including error bodies.
Dataloom Docs