Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

CUG: For unauthorized users, can we alter response code?

Avatar

Level 2

Hi Team,

 

In our system, error handling is done in via dispatcher as there are non AEM pages also in the website. Currently for 404 error,an error page is getting displayed. Now we have a requirement where on visiting a CUG page, and if user is not having access, a different error page should be displayed(not 404 error page). The response code from AEM for cug page is 404. Is there a way we can change the response code to 403?

 

Thanks in advance.

1 Reply

Avatar

Level 2
I have exactly the same issue and I can't find any answer to solve this. please somebody help