Skip to main content

Errors

The application/problem+json error envelope, every error code with its HTTP status, and how to retry.

Errors are returned as RFC 9457 problem details with the content type application/problem+json. The code field is stable and machine-readable; use it, not the detail text, to decide what to do. Problem bodies never contain internal details such as stack traces or SQL.

HTTP/1.1 429 Too Many Requests
Content-Type: application/problem+json
Retry-After: 12
X-Request-Id: req-example-1

{
  "type": "https://oysterlist.com/problems/rate_limited",
  "title": "RateLimited",
  "status": 429,
  "detail": "Rate limit reached: too many requests this minute or at the same time. Wait the number of seconds in Retry-After, then retry. The limits depend on the plan.",
  "code": "rate_limited",
  "requestId": "req-example-1",
  "retryAfterSeconds": 12
}

Problem fields

Problem detail fields
Field Required Meaning
type Yes Problem type URI.
title Yes Short name of the problem, the same for every response with this code, for example RateLimited.
status Yes HTTP status code of the response, repeated in the body.
detail Yes Actionable explanation; internals are never serialized into the body.
code Yes Stable machine-readable error code; branch on this, not on the title or detail.
requestId Yes Identifier of the request: the one you supplied, otherwise one we generated. Quote it when contacting support.
retryAfterSeconds No Present on 429 responses together with the Retry-After header.

Every problem response also has an X-Request-Id header with the same value as requestId. Quote it when you contact us about a failed call.

Error codes

Error codes and HTTP statuses
Status Code Meaning and what to do Retry
400 invalid_selector A parameter, identifier or body field is malformed or out of range. Fix the request; retrying it unchanged fails again. No
400 invalid_operation The operation or its input shape is not valid for this route. Check the method, path and body against the reference. No
401 unauthenticated The Authorization header is missing, malformed, expired, revoked or not valid for this resource. Send a current key or token. No
402 plan_required No Oyster List Data API plan applies to this account. Choose a plan on the developer billing page. Pro, Analyst, Team and Enterprise website members get an included allowance on their personal developer account. No
403 insufficient_scope The key or token is valid but does not carry the scope for this operation, or your account role does not allow it. No
403 source_restricted The source terms do not permit this representation or delivery for your account. The data stays unavailable through every interface. No
404 not_found The object does not exist or is not visible to your account. Private objects of other accounts also answer 404. No
409 idempotency_mismatch The idempotency key was already used with a different request body. Use a new key for a changed request. No
409 incompatible_dimensions The selected series cannot be combined, for example because their units, frequencies or dimensions differ. No
422 impossible_analysis The analysis cannot run on the selected data, for example because too few overlapping observations remain. No
429 quota_exceeded A monthly allowance (read units, analysis units or delivered bytes) is used up for this period. Wait for X-Quota-Reset. Overage is never charged. A larger allowance is an API plan change on the developer billing page, not a website checkout. No
429 rate_limited Too many requests in the current one-minute bucket, or too many concurrent requests. Wait for Retry-After seconds. Yes
503 upstream_unavailable A data provider needed for this request did not answer. Retry later with the same X-Request-Id. Yes
503 service_unavailable The service is unavailable right now. See /status for its current state. Yes
500 internal_error An unexpected server error. The body never includes internal details; quote the requestId when you contact us. No

Retrying

  • Retry only the codes marked Yes above. Wait for Retry-After when it is present.
  • Reuse the same X-Request-Id for a retry of the same call, so the API can recognise it and not charge it twice. Give every new call, and every new page, a new ID.
  • Do not retry 4xx errors other than 429 without changing the request.