How to remove server information from 500 response | Community
Skip to main content
February 1, 2024
Solved

How to remove server information from 500 response

  • February 1, 2024
  • 1 reply
  • 640 views

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.

 

Thank you for your help in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Harwinder-singh

@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/developing/full-stack/custom-error-page.html?lang=en

 

 

1 reply

Harwinder-singh
Community Advisor
Harwinder-singhCommunity AdvisorAccepted solution
Community Advisor
February 1, 2024

@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/developing/full-stack/custom-error-page.html?lang=en