All HTTP Status Codes
504
Gateway Timeout
5xx Server Error
RFC 9110What it means
The server acting as a gateway or proxy did not receive a timely response from the upstream server. The upstream server is too slow or unresponsive.
Common causes
- Slow database query
- Upstream API timeout
- Network congestion between servers
- Overloaded upstream service
How to fix it
Increase timeout values if the operation legitimately takes long. Optimize slow queries. Add caching. Monitor upstream service response times.
Test this status code live
Send real HTTP requests and inspect status codes directly in your browser.