Is it possible in http-proxy to do not forward requests to the server, but at once return a response with some error code, for example with 401 Unauthorized?
I need analyze request body and in some cases do not forward requests to the server.
is it possible to do at all?
Or http-proxy can only modify request and response, but request always should be forwarded to the server?