Fix exception in healthcheck with http