DOCS / V1 / REFERENCE
REFERENCE

Headers & errors

What the gateway tells you about each response, and what its status codes mean.

Response headers

Chat responses include routing headers for auditing. Upstream provider names are never exposed.

HeaderMeaning
x-egg-requested-modelThe model string you sent.
x-egg-resolved-modelThe model that actually served the request.
x-egg-routing-strategyStrategy used, or cache on a cache hit.
x-egg-cacheHIT, MISS or BYPASS.
x-egg-residency-requestedResidency tag you asked for.
x-egg-residency-servedScope that served it (global if degraded).

Errors

Errors return JSON with a detail message.

StatusMeaning
400Bad request, e.g. an audio model on the chat endpoint, or an unknown audio model.
401Missing or invalid API key.
403Model not permitted for your key or organization.
413Audio file larger than 25 MB.
422Invalid request, including a malformed model ref.
429Request-rate or monthly token/spend quota exceeded. Honor retry_after.
503Quota enforcement or upstream temporarily unavailable. Retry with backoff.