qbit/core/src/main/java/io/advantageous/qbit/service/health/HealthServiceImpl.java
@Override
    public void failWithReason(final String name, final HealthFailReason reason) {
        logger.error("HealthService::fail() {}", name);


        super.incrementCount("fail");

        final NodeHealthStat nodeHealthStat = getServiceHealthStat(name);

        nodeHealthStat.setStatus(HealthStatus.FAIL);
        nodeHealthStat.setReason(reason);
        nodeHealthStat.setLastCheckIn(super.time);

        onFail.ifPresent(checkIn -> checkIn.accept(BeanUtils.copy(nodeHealthStat)));
    }
@Override
    public void failWithReason(final String name, final HealthFailReason reason) {
        logger.error("HealthService::fail() {}", name);


        super.incrementCount("fail");

        final NodeHealthStat nodeHealthStat = getServiceHealthStat(name);

        nodeHealthStat.setStatus(HealthStatus.FAIL);
        nodeHealthStat.setReason(reason);
        nodeHealthStat.setLastCheckIn(super.time);

        onFail.ifPresent(checkIn -> checkIn.accept(BeanUtils.copy(nodeHealthStat)));
    }
Check in the service with a specific status.

@param name   name
@param reason reason