private static ErrorResponse createResponse(RuleBasedFilterConfig.Rule config) {
            Response response = new Response(config.blockResponseCode());
            config.blockResponseHeaders().forEach(h -> response.headers().add(h.name(), h.value()));
            return new ErrorResponse(response, config.blockResponseMessage());
        }
Security request filter that filters requests based on host, method and uri path.

@author bjorncs
jdisc-security-filters/src/main/java/com/yahoo/jdisc/http/filter/security/rule/RuleBasedRequestFilter.java