504
Universal HTTP Status Code
Severity: CriticalWhat Does This Error Mean?
A 504 Gateway Timeout error means the website's front-facing server sent a request to a back-end server — and that back-end server took too long to respond. The front-end server gave up waiting and showed you this error instead. Think of it like calling customer service, being put on hold, and the phone system giving up before an agent answered. This is the website's problem — your device and internet connection are fine.
Affected Models
- All web browsers
- All websites using multiple server layers
- Mobile browsers
- Web applications
Common Causes
- The website's back-end server is overloaded and responding slowly
- Network issues between the website's own servers are causing delays
- The back-end server is down or unresponsive
- A heavy database query is taking longer than the allowed timeout
- The website is experiencing high traffic and cannot process requests fast enough
How to Fix It
-
Wait 1–2 minutes and reload the page. Many 504 errors are short-lived and resolve on their own.
The back-end server may just be temporarily busy and caught up soon.
-
Hard refresh with Ctrl+F5 (Windows) or Cmd+Shift+R (Mac) to force a brand new request.
This bypasses any cached error response your browser may have stored.
-
Check the website's status page or social media for outage announcements.
Search for 'websitename status' in Google, or look for their Twitter/X account.
-
Try again from a different device or network to confirm the problem is not local.
If the error appears everywhere, it is definitely the website's servers.
-
If the error persists for more than an hour, contact the website's support team.
A persistent 504 indicates a serious infrastructure issue that the website's team needs to address urgently.
When to Call a Professional
This error is always on the website's side. As a visitor, waiting and retrying is the best approach. Website owners should investigate back-end server performance, database query speed, and network connectivity between their server components.
Frequently Asked Questions
What is the difference between a 504 and a 408 error?
A 408 means your browser took too long to send its request to the server. A 504 means the server itself took too long to get a response from another server behind it. A 408 can be caused by a slow internet connection. A 504 is always the website's infrastructure problem.
Is a 504 more serious than a 502?
Both are serious server-side issues. A 502 means a bad response was received. A 504 means no response was received in time. A 504 often indicates the back-end server is completely unresponsive or severely overloaded.
Could a payment I made have gone through even with a 504 error?
It is possible — the back-end processing server may have completed the transaction before the timeout. Check your email for a confirmation and your bank statement before retrying payment. If in doubt, contact the website's support before trying again.