services/bff/src/main/java/com/example/bff/actuator/HealthCheck.java [30:41]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Health health() {
        int errorCode = check(); // perform some specific health check

        if (errorCode != 0) {
            logger.error("BFF Application: failed health check with error code " + errorCode);
            return Health.down()
                    .withDetail("Custom Health Check Status - failed. Error Code", errorCode).build();
        }

        logger.info("BFF Application: Custom Health Check - passed");
        return Health.up().withDetail("BFF Application: Custom Health Check Status ", "passed").build();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



services/reference/src/main/java/com/example/reference/actuator/HealthCheck.java [30:41]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Health health() {
        int errorCode = check(); // perform some specific health check

        if (errorCode != 0) {
            logger.error("Reference Application: failed health check with error code " + errorCode);
            return Health.down()
                    .withDetail("Custom Health Check Status - failed. Error Code", errorCode).build();
        }

        logger.info("Reference Application: Custom Health Check - passed");
        return Health.up().withDetail("Reference Application: Custom Health Check Status ", "passed").build();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



runtimes/crac/reference-crac/src/main/java/com/example/reference/actuator/HealthCheck.java [30:41]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Health health() {
        int errorCode = check(); // perform some specific health check

        if (errorCode != 0) {
            logger.error("Reference Application: failed health check with error code " + errorCode);
            return Health.down()
                    .withDetail("Custom Health Check Status - failed. Error Code", errorCode).build();
        }

        logger.info("Reference Application: Custom Health Check - passed");
        return Health.up().withDetail("Reference Application: Custom Health Check Status ", "passed").build();
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



