containers/hawkular-openshift-security-filter/src/main/java/org/hawkular/openshift/auth/Utils.java
public static void endExchange(HttpServerExchange exchange, int statusCode, String reasonPhrase) {
        exchange.setStatusCode(statusCode);
        if (reasonPhrase != null) {
            exchange.setReasonPhrase(reasonPhrase);
        }
        exchange.endExchange();
    }
public static void endExchange(HttpServerExchange exchange, int statusCode, String reasonPhrase) {
        exchange.setStatusCode(statusCode);
        if (reasonPhrase != null) {
            exchange.setReasonPhrase(reasonPhrase);
        }
        exchange.endExchange();
    }
Changes the status code of the response, sets the HTTP reason phrase and ends the exchange.

@param exchange     the HTTP server request/response exchange
@param statusCode   the HTTP status code
@param reasonPhrase the HTTP status message

@see HttpServerExchange#setStatusCode(int)
@see HttpServerExchange#setReasonPhrase(String)
@see HttpServerExchange#endExchange()