Gateway Timeout 504
Reference guide
Request path
- You (reached)
- DNS (reached)
- Cloudflare edge (reached)
- Origin (answered with a warning)
504
Likely cause
The origin's own upstream — not Cloudflare — timed out responding.
What to do
- Check. Check the origin's own proxy/load balancer logs for which upstream call timed out, and check that dependency's own performance (e.g. a slow database query or internal API call).
- Fix. Optimize or fix the slow upstream dependency, or increase the origin's own upstream timeout if the slow response is expected and acceptable.
- Verify. Retry the request and confirm it completes within a normal time.