Look up a Rails HTTP Status Code
504 - Gateway Timeout
Rails HTTP Status code
:gateway_timeout
When to use status code 504
The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.