CUG: For unauthorized users, can we alter response code? | Community
Skip to main content
February 6, 2020
Question

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

  • February 6, 2020
  • 1 reply
  • 1458 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

May 18, 2020
I have exactly the same issue and I can't find any answer to solve this. please somebody help