builder2.addErrorPage(new ErrorPage("/404", StatusCodes.NOT_FOUND));
builder2.addErrorPage(new ErrorPage("/501", StatusCodes.NOT_IMPLEMENTED));
builder2.addErrorPage(new ErrorPage("/parentException", ParentException.class));
builder2.addErrorPage(new ErrorPage("/childException", ChildException.class));
builder2.addErrorPage(new ErrorPage("/runtimeException", RuntimeException.class));
builder2.setExceptionHandler(LoggingExceptionHandler.builder()
.add(ParentException.class, "io.undertow", Logger.Level.DEBUG)
.add(ChildException.class, "io.undertow", Logger.Level.DEBUG)
.add(RuntimeException.class, "io.undertow", Logger.Level.DEBUG)
.add(ServletException.class, "io.undertow", Logger.Level.DEBUG)