What Does HTTP Status 504 Mean? (Gateway Timeout)

What HTTP 504 (Gateway Timeout) Means In Plain English

A 504 status (Gateway Timeout) means a gateway/proxy timed out waiting for an upstream server response.

If you want the broader context across all status code families, use the full HTTP Status Codes Guide (2xx, 3xx, 4xx, 5xx).

Quick Navigation

How to Read HTTP 504 in WebsiteDown Results

If regions return 504, the request path is reachable but upstream response time exceeded timeout budgets. Focus on latency and queue pressure across tiers.

If you see this code only in one region, compare with official provider status and retest from another network. Mixed regional results often indicate routing, policy, or edge differences rather than full global outages.

For deeper triage, compare this with the HTTP 502 guide, HTTP 408 guide, and the API downtime investigation playbook.

Most Common Root Causes

What to Do Next

  1. Correlate 504 spikes with p95/p99 latency and queue depth.
  2. Find first-hop timeout boundary (CDN, LB, gateway, service).
  3. Reduce heavy queries/calls and prioritize essential endpoints.
  4. Tune timeout and retry settings with strict caps and jitter.

What to Avoid During Triage

Real-World Examples

Share this guide:

FAQ

Is 504 the same as 408?

No. 504 is timeout to upstream server; 408 is timeout receiving request from client.

Can 504 appear with some 200s?

Yes. Partial overload often produces mixed results across routes and regions.

What is the fastest first check for 504?

Compare upstream latency and timeout configuration at every proxy boundary.