504 Gateway Timeout: what it means and what to do

Updated 10 November 2026 · Site Down Right Now

A 504 Gateway Timeout comes from a gateway server, such as a CDN, load balancer or proxy, that forwarded your request to the website's main server and waited too long for an answer.

It usually means the website's server is overloaded, stuck on a slow task, or unreachable from the gateway. It's rarely caused by your own device.

What you can do

  1. Reload after a minute or two. Timeouts often happen during traffic spikes.
  2. Check if it's down for everyone with our website checker.
  3. Try a different network or turn off your VPN or proxy. If you're on a work network, its proxy can be the gateway that times out.
  4. Restart your router if every site is slow.

If you run the website

  • Find slow requests: long database queries, calls to slow third-party APIs, or large exports that should run in the background.
  • Check server load and whether workers are all busy.
  • Compare the proxy's timeout settings (for example Nginx proxy_read_timeout) with how long your application really needs.
  • Behind Cloudflare, an origin that takes more than 100 seconds to respond produces error 524 instead.

How the timeout happens

When you open a page, the gateway starts a timer as it passes your request on. If the server behind it doesn't send back a response before the timer runs out, often 30 to 100 seconds, the gateway stops waiting and sends you a 504. The page you asked for may still be generating in the background, which is why a form you submitted can sometimes go through even though you saw an error.

Timeouts are most common on pages that do a lot of work: search results, reports and exports, checkout pages that talk to payment providers, and anything that depends on a slow outside service.

Be careful with payments and forms

If you see a 504 after pressing "Pay", "Submit" or "Book", don't immediately try again. First check your email for a confirmation, look at your account or order history, or check your bank app for a pending payment. Trying again too quickly is the most common way people end up paying twice. If nothing has appeared after 15 minutes, it's usually safe to try once more.

Telling a slow site from a slow connection

If several different websites are slow or timing out, the problem is probably your connection. Restart your router, or try mobile data to compare. If only one site times out, run it through our website checker: our check waits 10 seconds and then retries with a longer limit, so a site that is timing out for everyone will show as failing.

Questions

Is a 504 Gateway Timeout my internet?

Usually not. It means servers on the website's side didn't respond to each other in time. If every site gives you errors, though, restart your router.

What's the difference between a 504 and a 502?

With a 504 the server behind the gateway didn't answer in time. With a 502 it answered, but with something invalid, or the connection failed.

Did my payment go through if I saw a 504?

Possibly. The server may have finished processing after the gateway gave up. Check your email, order history or bank app before trying again.

Can a VPN cause 504 Gateway Timeout errors?

Yes, occasionally. A slow or overloaded VPN server acts as another gateway in the chain. Try turning the VPN off or switching server.