Portal
SandboxAPI v1Not signed inExternal user: —

Errors

Stable HTTP status conventions for public FoodAPI APIs.

Status codes

  • 401 — missing or invalid API key / OAuth token
  • 403 — authenticated but not permitted (scope, entitlement, environment)
  • 402 — QUOTA_EXCEEDED (shared REST + MCP)
  • 404 — resource not found in your tenancy
  • 422 — validation error on request body
  • 429 — rate limited; retry with backoff
  • 5xx — server error; retry with backoff

Domain codes

Some food operations return machine-readable domain codes (e.g. NORMALIZATION_AMBIGUOUS, ENTITLEMENT_REQUIRED). Prefer these over parsing human messages.

Observability

Capture X-Request-Id from responses when debugging. SDK error docs: Python · TypeScript.

Related