Improve builder of errorPage