Skip to content
fixerror.dev
504 5xx RFC 9110 §15.6.5

Gateway Timeout

Server (acting as proxy/gateway) timed out waiting for upstream response.

What HTTP 504 means

RFC 9110 §15.6.5. The proxy got tired of waiting for your app. Different from 502 (which is connection-level). Tune both proxy timeouts (nginx proxy_read_timeout, ALB idle timeout) and upstream response time.

Typical causes

  • Slow upstream response
  • Long-running query
  • Database lock contention
  • Proxy timeout too aggressive

504 across services

How 1 different errors map to HTTP 504 across the services we cover.