title: Can i define JSP Custom Error Pages for any of HTTP Client Error Code(4XX) and HTTP Server Error Code(5XX)?
body: <p>I am using Jboss server, i want to know does it recognize all the HTTP Client Error Code(4XX) and HTTP Server Error Code(5XX) so that i can configure my custom error page like for 502, 503 etc. in web.xml? Thanks in advance.</p>
  
  <p><strong>Edit</strong>: i did't find any documentation that has defined this. but @Jeremy suggested me a way to test it out: 
     Write a Servlet to return error code you want as following.</p>
  
  <pre><code>response.sendError([Error code goes here],
    "Error Message");
  </code></pre>