@Override
    public String toString() {
        if (isHealthy()) {
            return UP_STATUS_CODE;
        } else if (healthStatusCode.isPresent()) {
            return "Bad health status code '" + healthStatusCode.get() + "'";
        } else if (exception.isPresent()) {
            return "Exception: " + Exceptions.toMessageString(exception.get());
        } else if (httpStatusCode.isPresent()) {
            return "Bad HTTP response status code " + httpStatusCode.getAsInt();
        } else {
            return "No health info available";
        }
    }
The result of a health lookup.

@author hakon
service-monitor/src/main/java/com/yahoo/vespa/service/health/HealthInfo.java