Added better diagnostic to send_http_error()
Ping only websocket connections