public OutlierDetectingRuleBuilder onStatus(Predicate<? super HttpStatus> predicate,
                                                OutlierDetectionDecision decision) {
        requireNonNull(predicate, "predicate");
        requireNonNull(decision, "decision");

        return onResponseHeaders((ctx, headers) -> {
            if (predicate.test(headers.status())) {
                return decision;
            }
            return OutlierDetectionDecision.NEXT;
        });
    }
Reports the specified {@link OutlierDetectionDecision} if the response status matches the specified
{@link Predicate}.
core/src/main/java/com/linecorp/armeria/common/outlier/OutlierDetectingRuleBuilder.java