Skip to main content
apiguide.dev

HTTP 504 — Gateway Timeout

The upstream server failed to send a timely response to the gateway proxy.

Status CodeHTTP 504
CategoryServer Error (5xx)
API Error Subtypes1 error schema
HTTP Headers0 headers

What does HTTP status code 504 mean?

The 504 Gateway Timeout status code indicates that a proxy server or gateway timed out waiting for a response from the backend application node.

When to use it in APIs

Generated by gateways when heavy queries, long-running processes, or external API dependencies block the execution thread beyond connection limits.

How it compares to other codes

  • 502 Bad Gateway: Means the backend returned an invalid response quickly. 504 means the backend took too long to return anything.

Specific API Error Types for 504

Associated HTTP Headers

No specific HTTP headers are explicitly linked to HTTP 504 in our directory yet.

Related HTTP Status Codes