Skip to main content
The Data City API uses standard HTTP status codes. Every error response shares a single JSON envelope.

Error envelope

{
  "message": "Human-readable description of what went wrong."
}
The message field is intended for log lines and developer diagnostics. Don’t surface it verbatim to end users β€” phrasing may change between releases.

Status code matrix

StatusWhen to expect itWhat to do
200Successful request.Process the response body.
400Malformed input (bad JSON, invalid query parameter, validation failed).Inspect message and fix the request.
401Missing or invalid Bearer token.Re-check the Authorization header. See Authentication.
403Token is valid but lacks the required ability for the endpoint.Email support to widen the token’s scope.
404The resource (company, list, set) does not exist.Confirm the identifier; some IDs expire after 24 hours β€” see Batching.
422Request well-formed but semantically invalid (for example, mutually exclusive filter fields).Inspect message, adjust the body.
429Too many requests.Back off and retry. See Rate limits.
500Unexpected server error.Retry with exponential backoff; if persistent, contact support@thedatacity.com.
503Service unavailable, usually during a deploy.Retry after a short delay.

Retrying

Retry 429, 500, 502, 503, and 504 with exponential backoff. Do not auto-retry 400, 401, 403, 404, or 422 β€” the request will fail again the same way.
Last modified on May 19, 2026