504 Gateway Timeout

  • You are here: Free PHP » Uncategorized » 504 Gateway Timeout

504 Gateway Timeout is a status a proxy might emit, when it’s acting as a proxy and not getting a response from an upstream server.

This is fairly close to 502 Bad Gateway, except that 502 should be returned when a proxy got an invalid response, and 504 typically when the proxy didn’t get a response at all (or too late).

Example

HTTP/1.1 504 Gateway Timeout
Content-Type text/html

<h1>Timeout</h1>

<p>We did not get a timely response from our upstream application server :(</p>

References

Powered by Gewgley