builder1.addErrorPage(new ErrorPage("/defaultErrorPage"));
builder1.addErrorPage(new ErrorPage("/404", StatusCodes.NOT_FOUND));
builder1.addErrorPage(new ErrorPage("/500", StatusCodes.INTERNAL_SERVER_ERROR));
builder1.addErrorPage(new ErrorPage("/parentException", ParentException.class));
builder1.addErrorPage(new ErrorPage("/childException", ChildException.class));
builder1.addErrorPage(new ErrorPage("/runtimeException", RuntimeException.class));
builder1.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)