504Gateway Timeout
A gateway gave up waiting for the server behind it to answer, so it returned a timeout instead.
Browse all HTTP status codesWhen you see it
Something behind the front-facing server is too slow: a query with no index, an external service that is not responding, or work that simply takes longer than the configured timeout allows.
The timeout is often the messenger rather than the problem. Raising it usually turns a fast failure into a slow one without fixing what is actually slow.
What to do about it
As a visitor, reload once. If it recurs, the site has a performance problem you cannot do anything about.
If you run the site, find what took too long before touching the timeout. Long-running work usually belongs in a queue with a 202 response rather than inside a request that a gateway is waiting on.
Often confused with
Look up another one
Open
Type a code, a partial code like 40, or any word from a name or description. Everything runs in your browser.
69 of 69 codes. Click a row to copy it.