title: how to customize the ErrorHandler class with customized body contents for jetty server in spring boot application
body: <p>I have a spring boot application that run on jetty server. the requirement is to customize the 404 and other errors with our own messages. After searching for a while got to a point that we can do it by a custom class by extending the <code>ErrorHandler</code> class of jetty package and override the method <code>getErrorPage(HttpServletRequest request)</code>.</p>
  
  <p>doubt: was not able to figure out how to configure this customized class in spring boot application to over ride the default ErrorHandler class. Is there a way to inject this custom class?</p>
  
  <p>Any help/suggestion would be really helpful.</p>