OpenNG

Errors

Error envelope, common codes, and safe client handling

Every failed request returns the same JSON envelope: success: false and an error object. Responses never include stack traces, SQL, or internal paths.

Error object

FieldMeaning
codeStable machine-readable identifier
messageShort, user-safe explanation
docsLink into this site for the condition

Shape and examples live under Response format.

Common codes

CodeWhen
INVALID_FILTERUnknown or malformed query parameter
NOT_FOUNDNo row for the requested id or slug
RATE_LIMIT_EXCEEDEDToo many requests in the window
UNAUTHORIZEDMissing or invalid API key or session

Additional codes may appear per resource; check each dataset’s docs and GET /v1/{resource}/meta where applicable.

Client behavior

Log or surface code and message for operators. Use docs for deep links in your own tooling. On RATE_LIMIT_EXCEEDED, read Rate limits for headers and backoff. Retry transient failures with jitter; do not parse raw bodies for undocumented fields.

On this page