504 Gateway Timeout errors might be seen in any Internet browser, in any operating system, and on any device. This means that it's possible to get a 504 Gateway Timeout error on your Android or iPhone, in Safari on a Mac, in Chrome in Windows, etc.
This usually means that the upstream server is down (no response to the gateway/proxy), rather than that the upstream server and the gateway/proxy do not agree on the protocol for exchanging data.that is 504 error.
The 504 Gateway Timeout error is an HTTP status code that means that one server did not receive a timely response from another server that it was accessing while attempting to load the web page or fill another request by the browser.
Most of the time, this means that the other server is down or not working properly."