The focus of the article is to understand the functionality of Error handler and creating custom error pages using acs-commons error handler. Using acs-commons error handler we can create custom error pages in easier steps with least code involved.
Acs-Commons Error Handler comes with In-Memory TTL based cache, which can be enabled in the sling:Osgi configurations of the Error Handler. Also we are setting the DispactherPassError to "0", so all the erring requests are sent back to AEM. Therefore our custom error pages load without displaying the Apache Error.