3 ms·
When control reaches there we know something went wrong within the zone that's sending the response, so it's nice to send a HTTP 500 error back. However it cou
by piscisaureus 12y ago
When control reaches there we know something went wrong within the zone that's sending the response, so it's nice to send a HTTP 500 error back.
However it could be that some data has already been sent back, in which case writeHead would throw. If that happens there isn't much more we can do.