Subscribe to PHP Freaks RSS

504 Gateway Timeout

syndicated from planet-php.net on July 30, 2019

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