code: public static void rejectExchange(final HttpServerExchange exchange) {
          exchange.setStatusCode(StatusCodes.EXPECTATION_FAILED);
          exchange.setPersistent(false);
          exchange.endExchange();
      }
docs: Sets a 417 response code and ends the exchange.
  
  @param exchange The exchange to reject