SanctionsLookup

Data last synced:

Error codes

The API uses standard HTTP status codes to indicate whether a request was successful or why it failed.

Error response format

{
  "detail": "name is required",
  "instance": "https://api.domain.com/v1/screen",
  "status": 400,
  "title": "Bad Request",
  "type": "about:blank",
  "code": "MISSING_NAME",
  "pointer": "/subjects/0/name"
}

HTTP status codes

StatusCodeWhen it happensCommon causes
200OKRequest processed successfullyMatches may still be empty
400Bad RequestInvalid or malformed request bodyMissing subjects, empty array, invalid JSON, wrong types, invalid enum values, more than 20 subjects
401UnauthorizedAuthentication failedMissing or invalid Authorization header, invalid API key
404Not FoundEndpoint does not existWrong URL path or version
405Method Not AllowedUnsupported HTTP methodUsing GET instead of POST
415Unsupported Media TypeInvalid content typeMissing or incorrect Content-Type: application/json
500Internal Server ErrorUnexpected server errorTemporary failure

Statuses such as 429 Too Many Requests or 503 Service Unavailable are reserved for future rate limiting, maintenance, or capacity controls when those features are enabled.