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

Avatar

Avatar
Validate 1
Level 1
akhilat16351269
Level 1

Like

1 like

Total Posts

15 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
akhilat16351269
Level 1

Like

1 like

Total Posts

15 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 3
Give Back
Boost 1
View profile
akhilat16351269
Level 1

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)