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