code: private CompletionStage<AggregatedHttpMessage> updateHealthStatus(
              ServiceRequestContext ctx, HttpRequest req) {
          return mode(ctx, req).thenApply(mode -> {
              if (!mode.isPresent()) {
                  return BAD_REQUEST_RES;
              }
  
              final boolean isHealthy = mode.get();
  
              serverHealth.setHealthy(isHealthy);
  
              return isHealthy ? TURN_ON_RES : TURN_OFF_RES;
          });
      }
docs: Updates health status using the specified {@link HttpRequest}.