5xx Server Error
HTTP 504 Gateway Timeout
A gateway or proxy did not get a response from the upstream server in time.
Check a URL's HTTP statusWhat 504 means
The origin is reachable but too slow, often because of long-running queries or overloaded servers.
Common causes
- Slow database queries or API calls.
- Proxy timeout set lower than the app's response time.
- Network problems between the proxy and origin.
How to fix it
- Optimize slow requests or move them to background jobs.
- Align proxy and application timeouts.
- Check origin server load.
How to check a status code
Enter a URL in the HTTP Status Checker to see its status code, every redirect hop, and response time. For redirect-heavy pages, the Website Speed Test shows how much time redirects add.
FAQ
- What does HTTP 504 mean?
- 504 Gateway Timeout is a 5xx server error status code. A gateway or proxy did not get a response from the upstream server in time.
- What causes a 504 error?
- Slow database queries or API calls. Proxy timeout set lower than the app's response time. Network problems between the proxy and origin.
- How do I fix HTTP 504?
- Optimize slow requests or move them to background jobs. Align proxy and application timeouts. Check origin server load.
Defined in RFC 9110.