HTTP 5xx attribution
A 502, 503 or 504 can originate at a proxy or application. Correlate request IDs and upstream timings; identify which component produced the response before restarting services. A proxy records 504 after its upstream timeout while the app records a database call still running. Match request IDs to locate the delay; the proxy's response code identifies where timeout was enforced.
A proxy records 504 after its upstream timeout while the app records a database call still running. Match request IDs to locate the delay; the proxy's response code identifies where timeout was enforced.
An upstream is the service a proxy calls; a gateway error reports failure at that intermediary; a correlation ID connects records across components. Imagine a load balancer returns 502 while the application has no matching request. Check target health, connection behavior and the intended port/protocol before blaming business logic. If the application does have the request, compare its response and duration with the proxy's recorded outcome. Different 5xx codes suggest different paths but are not complete diagnoses; proxies and applications can map errors differently. Preserve headers and timestamps where safe. Detailed tracing improves attribution, while logging every payload introduces privacy and cost concerns. Gather enough metadata to identify the response-producing component and failed dependency without collecting sensitive content unrelated to the investigation.
Match request IDs to locate the delay; the proxy's response code identifies where timeout was enforced.
A 504 must always have been generated by application code.