class ErrorRegister implements ErrorPageRegistrar {

    @Override
    public void registerErrorPages(ErrorPageRegistry registry) {<FILL_FUNCTION_BODY>}

}

        ErrorPage err400 = new ErrorPage(HttpStatus.BAD_REQUEST, "/error");
        ErrorPage err404 = new ErrorPage(HttpStatus.NOT_FOUND, "/error");
        ErrorPage err500 = new ErrorPage(HttpStatus.INTERNAL_SERVER_ERROR, "/error");
        registry.addErrorPages(err400, err404, err500);
    
<no_super_class>