Is it possible to redirect 502 bad gateway in php?. I have tried to set 502 bad gateway in header redirect location.
header('502.html');
Add Location to the beginning, like so:
Location
header('Location: 502.html');
http://php.net/manual/en/function.header.php