Implement standard error reporting for web sockets