Expand my Community achievements bar.

SOLVED

How to remove server information from 500 response

Avatar

Level 1

Hello I want to remove information about server from error response.

For example when I try to access a file that does not exist in jcr content I get following html response, which also contains server information which I do not want to be there.

 

serverinfo.png

Thank you for your help in advance.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@ViktorL1 You can create custom 500 error page to customize the content that you want to serve the user when there is 500 error.

You can refer to these articles on how to set this up. This applies to other error code situations like a 404 error.

https://blog.3sharecorp.com/error-handling-in-aem

https://medium.com/@toimrank/aem-acs-commons-error-page-handling-a84549761260

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/develo...

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@ViktorL1 You can create custom 500 error page to customize the content that you want to serve the user when there is 500 error.

You can refer to these articles on how to set this up. This applies to other error code situations like a 404 error.

https://blog.3sharecorp.com/error-handling-in-aem

https://medium.com/@toimrank/aem-acs-commons-error-page-handling-a84549761260

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/develo...