Dataloom Docs

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

StatusMeaningBilled?
200Success — the response body contains your dataYes
400Validation failure — a required parameter is missing or malformed. The body comes from the API; each endpoint's exact error bodies are on its reference pageNo
401Missing, invalid, or revoked API keyNo
402Insufficient credit balance for this call — top up in the consoleNo
403Account email not verified yet — verify to unlock the keyNo
404Unknown path — check the endpoint's reference pageNo
429Rate limited — slow down and retry (see rate limits)No
500Gateway-side failure while checking the requestNo
502 / 503The upstream API could not be reachedNo — refunded
504The upstream API timed outNo — 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
}
FieldDescription
errorHTTP-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.
messageHuman-readable reason for this specific rejection.
serviceName of the service that received the request.
remainingBalanceYour credit balance, present when it is known (402, 429).

Every rejection you can hit

StatusmessageWhat to do
401Invalid or missing API keySend Authorization: Bearer <key> — see authentication
401API key has been revokedCreate a new key in the console; update your services
401Authentication failedRare gateway-side failure — retry once, then contact support
402Insufficient credit balance. Please top up your account.Top up in the console, or wait for the next monthly grant
403API key is pending verification. Please verify your email.Verify your email; the key works immediately after
429Rate limit exceeded. Your plan limit is N request(s) per second.Back off and smooth your request rate — see rate limits
429Playground rate limit exceeded. Limit is N request(s) per minute.Console playground throttle — wait a minute
429Playground 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 the Retry-After header, 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.

On this page