Skip to main content
airmux keeps the error envelope native to the caller surface.
Authentication, parsing, policy, provider, and buffered execution failures use the protocol bound to the request path. Model discovery uses the OpenAI error shape.

Gateway codes

Provider HTTP errors may retain the provider status and normalized provider code. Do not branch only on the human message; prefer HTTP status and code or type. Every data-plane 401 response includes WWW-Authenticate: Bearer realm="airmux". All data-plane HTTP responses carry the shared response headers, including a gateway request ID. Unexpected server failures may return a plain-text 500 body; the shared response headers still apply.

Streaming errors

After response headers are sent, the HTTP status remains 200. The stream emits a dialect-shaped error event and then terminates. Treat either an error event or an incomplete terminal sequence as failure. Retries belong in the workspace fallback policy or application layer. Avoid retrying validation errors, authentication failures, and policy denials.