websocket: Add function that explain error codes