reply 502 on net connection errors