HTTP 504
Gateway Timeout
Server Error
What does "HTTP 504 Gateway Timeout" mean?
Plain-English Meaning
A proxy or CDN waited too long for a response from the origin server. The backend didn't answer in time.
Common Causes
- Slow backend response (long database query, external API call)
- Origin server down or unreachable
- Network issues between proxy and origin
- Firewall blocking the proxy
What Users Can Do
Reload after a minute or two. The problem is on the server side.
What Developers Can Do
Profile slow endpoints. Increase proxy timeout if legitimate. Add caching. Optimize database queries. Check origin server health.
Related Status Codes
Seeing HTTP 504 on a specific site?
Check if the site is experiencing this error for everyone or just you.
Check Website Status