use of io.vertx.up.exception._405MethodForbiddenException in project vertx-zero by silentbalanceyh.
the class ServiceJet method reply405Error.
/**
* Method not Allowed ( 405 )
*
* @param context
*/
private void reply405Error(final RoutingContext context) {
final HttpServerRequest request = context.request();
final WebException exception = new _405MethodForbiddenException(getClass(), request.method(), request.uri());
Answer.reply(context, Envelop.failure(exception));
}
Aggregations