Sometimes requests are closed by client before the server has a chance to send response.
This happens, for example, when a http proxy in front of the application is configured with a timeout and the node server is too slow to respond. It would also happen if the user's browser goes away without waiting for the response.
Currently such timeouts are counted as 200s by express-prom-bundle. This PR changes that to 499 "Client Closed Request". This way it's possible to tell them apart.
Sometimes requests are closed by client before the server has a chance to send response.
This happens, for example, when a http proxy in front of the application is configured with a timeout and the node server is too slow to respond. It would also happen if the user's browser goes away without waiting for the response.
Currently such timeouts are counted as 200s by express-prom-bundle. This PR changes that to 499 "Client Closed Request". This way it's possible to tell them apart.