airmux keeps the error envelope native to the caller surface.
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 remains200. 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.