HTTP
504 Gateway Timeout
The server, acting as a gateway or proxy, did not receive a timely response from the upstream server.
When You See This Code
When an upstream server is too slow to respond within the proxy's timeout window.
How to Fix
Increase proxy timeout settings. Optimize upstream server performance. Check for long-running queries.