We have a layout that we want to use in a few different places as well as for Sling error handler pages.
Outside Sling error handler, we are using a cq:Pages together with a page component to reuse the template.
Is there a way to configure the Sling error handler to use cq:Pages in a similar way, rather than serving JSP pages?