← Back to all status codes
5xx Series
Safe to retry
504 Gateway Timeout
The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
🌍
SEO Impact
Negative. Indicates application is far too slow, significantly harming Crawl Budgets.
🔧
Common Causes
- 1Long-running database query blocking worker threads
- 2Upstream 3rd party API freezing
Code Examples
AWS
// Typically seen in AWS API Gateway when Lambda exceeds 30s timeout