title: Configuring single jsp error page with different messages for different http errors
body: <p>I am developing an web-application.</p>
  
  <p>I am looking to configure error pages in web.xml. </p>
  
  <p>I want to make a <strong>single error page with different error messages for different http errors like 400,404,etc.</strong> </p>
  
  <p>For example : I want to use the same error page "error.jsp" for all http errors. 
  assume <strong>if error 400 arises</strong>, jsp should display <strong>"Bad request"</strong> 
  and <strong>if error 404 occurs</strong>,jsp should display messgae as <strong>"page not found".</strong> </p>
  
  <p>please help. </p>
  
  <p>Thanks. </p>