Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How do I detect that a resource failed to render and take appropriate action?

Avatar

Level 2

I have a resource included as follows:

<div data-sly-resource="${ 'resource-name' @ resourceType='path/to/resource'}"></div>

In some cases, that resource is failing to load and no HTMLis 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!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor