private void endRequest(HttpServerExchange exchange) {
        exchange.setStatusCode(StatusCodes.FORBIDDEN);
        
        Server.headers()
            .entrySet()
            .stream()
            .filter(entry -> StringUtils.isNotBlank(entry.getValue()))
            .forEach(entry -> exchange.getResponseHeaders().add(entry.getKey().toHttpString(), entry.getValue()));
        
        exchange.getResponseSender().send(Template.DEFAULT.forbidden());
    }
private void endRequest ( HttpServerExchange exchange ) { exchange . setStatusCode ( StatusCodes . FORBIDDEN ) ; Server . headers ( ) . entrySet ( ) . stream ( ) . filter ( entry -> StringUtils . isNotBlank ( entry . getValue ( ) ) ) . forEach ( entry -> exchange . getResponseHeaders ( ) . add ( entry . getKey ( ) . toHttpString ( ) , entry . getValue ( ) ) ) ; exchange . getResponseSender ( ) . send ( Template . DEFAULT . forbidden ( ) ) ; }
Ends the current request by sending a HTTP 403 status code and the default forbidden template
@param exchange The HttpServerExchange