By customizing the pages shown by the error handler a 500.jsp script can be created. However, it is only used if HttpServletResponse.sendError(500) is executed explicitly; i.e. from an exception catcher.
Otherwise, the response code is set to 500, but the 500.jsp script is not executed.
To handle 500 errors, the file name of the error handler script must be the same as the exception class (or superclass). To handle all such exceptions you can create a script /apps/sling/servlet/errorhandler/Throwable.jsp or /apps/sling/servlet/errorhandler/Exception.jsp.
can we have some sample of Exception.jsp?
Please reply.
Thanks in advance.
In CQ, when a restricted content is accessed it returns HTTP status code 404 instead of 403. Please advice how to change this behavior
Thanks
Note: Customers with DayCare user accounts need to create a new account for use on day.com.