fix for websocket error codes