private ValidationEvent invalidError(Shape shape, Trait trait, int code, String range, String errorValue) {
        return danger(shape,
                trait,
                String.format(
                        "Expected an `httpError` code in the %s range for a `%s` error, but found %s",
                        range,
                        errorValue,
                        code));
    }
Ensures that HTTP response codes are appropriate for operations and errors.
smithy-model/src/main/java/software/amazon/smithy/model/validation/validators/HttpResponseCodeSemanticsValidator.java