static void addOperationService(ServerBuilder sb, List<Integer> exposedPorts,
                                    WebOperation operation, HttpCodeStatusMapper statusMapper,
                                    WebOperationRequestPredicate predicate, String path,
                                    Map<String, Object> arguments, @Nullable CorsServiceBuilder cors) {
        if (cors != null) {
            cors.route(path);
        }
        final Route route = route(predicate.getHttpMethod().name(), path,
                                  predicate.getConsumes(), predicate.getProduces());
        if (exposedPorts.isEmpty()) {
            sb.service(route, new WebOperationService(operation, statusMapper, true, arguments));
            return;
        }
        exposedPorts.forEach(port -> sb.virtualHost(port)
                                       .service(route, new WebOperationService(
                                               operation, statusMapper, false, arguments)));
    }
Returns a {@link HttpCodeStatusMapper}.
See <a href="https://github.com/spring-projects/spring-boot/blob/9643dbeed26268f37d37c22385704de8911b8f21/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/endpoints.adoc#writing-custom-healthindicators">writing-custom-healthindicators</a>.
spring/boot3-actuator-autoconfigure/src/main/java/com/linecorp/armeria/spring/actuate/ArmeriaSpringActuatorAutoConfiguration.java