chain
#
HTTP 504 Gateway Timeout
⌃⏎ run · clear · / focus input
Meaning
send output to
no matches
Result appears here as you type
runs in your browser · nothing uploaded
// about this tool

HTTP 504 Gateway Timeout Online

Updated 2026-07-26

HTTP 504 Gateway Timeout means a proxy, load balancer, or CDN forwarded your request upstream and gave up waiting for a response before its own timeout ran out. Unlike 502, the upstream never replied at all — there's no bad response to inspect, just silence.

The fix is almost always downstream of the proxy: look for a slow database query, a hung external API call, or an overloaded worker that's taking longer than the gateway's timeout allows, and either speed it up or raise the timeout if the operation is legitimately slow. For every other status code at once, use the full HTTP Status Codes reference.

// how to use

  1. 1 The code is already looked up below — 504 is pre-filled.
  2. 2 Type any other status code to look that one up instead.
  3. 3 Copy the result, or use the full HTTP Status Codes reference for every code at once.

// examples

The code itself
Input
504
Output
504 Gateway Timeout — Server Error (5xx). A proxy or gateway did not get a response in time from the upstream server.
A code it's often confused with
Input
502
Output
502 Bad Gateway — the upstream DID respond, just with something invalid; 504 means it never responded in time.

// common uses

Debugging a slow backend request that a proxy timed out on Diagnosing a hung database query or external API call behind a gateway Distinguishing a timeout (504) from an invalid upstream reply (502) Checking what a status code in server logs actually means

// faq

Is anything uploaded to a server?
No. The lookup runs entirely in your browser from a built-in table, so nothing you type leaves your machine.
What causes a 504?
A reverse proxy, load balancer, or CDN forwarded a request to an upstream server and gave up waiting for a response before its own timeout expired — commonly a slow database query, an overloaded backend, or a genuinely hung process.
How is 504 different from 502 Bad Gateway?
502 means the upstream server DID reply, but with something the proxy couldn't use. 504 means the upstream never replied at all within the allowed time — no response beats a bad one for diagnosis, since a hang and a crash look very different in logs.
How is 504 different from 503 Service Unavailable?
503 is the server (or proxy on its behalf) actively refusing requests, usually with a Retry-After hint. 504 is passive — the proxy simply timed out waiting, with no indication from the origin about when or whether it'll respond.
What's the first thing to check when debugging a 504?
Whatever the request depends on downstream — a slow database query, a hung external API call, or an overloaded worker process — since the proxy's own timeout is rarely the root cause, just the symptom.

Use this via API

Get a free API key →
curl -X POST https://thesnaptools.com/api/v1/tools/http-504 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"504"}'
Esc
↑↓ navigate open Esc close