Send 502 in case of server connection problems.