Created by: cloudmu
Currently the custom onError handler for httpProxyMiddleware only logs proxy error on the console (#502). This amends the onError handler so it will also send proper error response to the client.
Otherwise the client will wait for the response and eventually timeout with ERR_EMPTY_RESPONSE, instead of the proper proxy error. See two screenshots before/after this PR.