status Registered
Verified 2026-09-18 · registry updated 2025-09-15

HTTP 504 Gateway Timeout

A gateway or proxy did not receive a timely response from an upstream server.

Use 504 when an upstream dependency times out before your gateway can complete the request.

httpstatus codeserver errortimeout

Response (http)

HTTP/1.1 504 Gateway Timeout

Use 504 when an upstream dependency times out before your gateway can complete the request.

Common mistakes

  • Letting gateways hang without timeouts, or blaming the client for an upstream timeout.

Registry reference: RFC9110, Section 15.6.5

Permalink: https://merginit.com/reference/http/status-504