In this article
Preserve response origin and versioned detail categories before attributing a gateway status to model capacity.
The diagnostic situation
A client receives a generic failure from an inference gateway. The incident report attributes it to an overloaded model worker. Envoy may instead have produced a local reply because no route or healthy upstream existed, or terminated a stream on its own timeout. A shared status envelope does not establish that the request reached model admission or execution.
Why the observation changes meaning
Envoy documents RESPONSE_CODE_DETAILS as diagnostic information from the connection manager, router and codecs, with additional filter-specific details possible. It distinguishes local conditions from a response set by the upstream. The documentation explicitly warns that detail names are not guaranteed stable. Treat them as versioned diagnostic evidence, not an eternal public API or a universal overload taxonomy.
Define the instrumentation contract
Define a safe internal mapping from response origin, details and relevant upstream observations to incident categories. Preserve the raw bounded detail where permitted and keep external client classification separate. Do not expose internal topology through arbitrary public headers simply to make diagnosis easier. Attach route configuration and Envoy build identity so a later name change does not resemble a new failure class.
A bounded verification procedure
Use a test gateway and synthetic endpoint to exercise a local direct reply, an unavailable route destination and an upstream-returned failure. Add a controlled timeout separately. Capture client envelopes, configured access-log details and upstream receipt records. Compare the expected origin table with the mapping. Verify that an upstream status transformation does not erase the evidence of where the original response came from.
Evidence required for acceptance
Acceptance needs the effective logging configuration, version, fixture outcomes and evidence of upstream admission where available. Show ambiguous cases rather than assigning every gateway failure to GPU saturation. Check that unknown detail names produce a visible unclassified category instead of disappearing from totals. A successful mapping should localize the responsible boundary without pretending to explain an unobserved engine cause.
Failure cases and limits
Filter chains and custom local replies can extend the documented list, and partial streams introduce different response-commit boundaries. A detail category alone does not establish user-visible completeness or root cause. This protocol validates response-origin attribution in the tested configuration. Capacity, retry eligibility and model health remain separate questions requiring their own evidence beyond the final gateway status.
Primary references and related reading
Preserve response origin and versioned detail categories before attributing a gateway status to model capacity. Envoy response-code details; Envoy HTTP routing and request hedging.
The proposed investigation of envoy local upstream response details is not an executed deployment benchmark. Related reading: Provider overload: Retry-After as part of the contract; Provider admission control: bound the queue before latency grows.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.