I am running AEM 6.3 and have an application built using HTL, Java, etc. I have a component included as a resource as follows:
<div data-sly-resource="${ 'resource-name' @ resourceType='path/to/resource'}"></div>
In some cases, that resource is failing to load and no HTML is being rendered. How can I detected that failure and take action?
Preferably, I'd like to return the response as normal and set an HTTP header.
Thanks for your help!