← All status codes
5xx Server Error
504
Gateway Timeout
The upstream server did not respond in time.
What it means
A 504 Gateway Timeout response means the server, acting as a gateway or proxy, did not receive a timely response from the upstream server it needed to reach to complete the request. The upstream server is slow or unresponsive.
Common causes
- The upstream application server is too slow to respond.
- A database query is taking too long.
- Network issues between the proxy and upstream server.
- An external API call is timing out.
How to fix it
- If you are a visitor, refresh the page or try again later.
- If you are the site owner, optimize slow database queries or application code.
- Check upstream server performance and resource usage.
- Increase timeout values in proxy or load balancer configuration if appropriate.
Test a URL and see its actual status code now.
Open the checker →