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

akhilat16351269

06-02-2020

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.

Accepted Solutions (0)

Answers (0)