Overriding HTTP status code of healthcheck servlet is not possible anymore
maffe opened this issue · 0 comments
maffe commented
We upgraded from Dropwizard 2.1 to 4.0. Now our monitoring fails to get details in case of any unhealthy healthcheck because then the HTTP status 500 is used. Previously it was possible to override this, but that change was only done in com.codahale.metrics.servlets.HealthCheckServlet, not in io.dropwizard.metrics.servlets.HealthCheckServlet which our application now uses.