﻿# Envoy response details: local rejection and upstream failure are different evidence

A practical investigation of envoy response details: local rejection and upstream failure are different evidence, with explicit observations, control cases and evidence limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-observe-envoy-local-upstream-response-details/
Language: en

## 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](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/response_code_details); [Envoy HTTP routing and request hedging](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_routing.html).

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](/journal/provider-overload-retry-after-contract/); [Provider admission control: bound the queue before latency grows](/journal/provider-admission-queue-budget/).
