Handle situation where the server isn't responding by sending 502.