Errors
Stable HTTP status conventions for public FoodAPI APIs.
Status codes
401— missing or invalid API key / OAuth token403— authenticated but not permitted (scope, entitlement, environment)402—QUOTA_EXCEEDED(shared REST + MCP)404— resource not found in your tenancy422— validation error on request body429— rate limited; retry with backoff5xx— 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.