Handles responses for incoming HTTP requests. Responds with stats when
the request endpoint is /metrics.
For all other endpoints, returns HttpResponseCode.NotImplemented.
If stat collection throws an error, responds with
HttpResponseCode.InternalServerError, with the exception message as
the response message body;
Handles responses for incoming HTTP requests. Responds with stats when the request endpoint is /metrics. For all other endpoints, returns HttpResponseCode.NotImplemented. If stat collection throws an error, responds with HttpResponseCode.InternalServerError, with the exception message as the response message body;