I am using some custom and complex proxy logic on the caronte branch. For http requests, among other things, I add a header X-Proxy-Rejected: reason if for some reason I can not find a suitable endpoint to the users request.
I have found this very useful to debug small issues and gain a quick understanding of what is going on for a user.
Is it possible to do something like this for web sockets since we do not have a response object? Also, on an error I end up calling just socket.end() otherwise the websocket on the client side just hangs, is that a correct way to handle this?