static CircuitBreakerRule onStatusClass(HttpStatusClass statusClass) {
        return builder().onStatusClass(statusClass).thenFailure();
    }
Returns a newly created {@link CircuitBreakerRule} that will report a {@link Response} as a failure,
if the class of the response status is one of the specified {@link HttpStatusClass}es.
core/src/main/java/com/linecorp/armeria/client/circuitbreaker/CircuitBreakerRule.java