how can I create a 040 error page in AEM? | Community
Skip to main content
New Participant
Apr 6, 2021 10:26 AM UTC
Solved

how can I create a 040 error page in AEM?

I think this might be quite simple, but i couldn´t figure out, how it works. I´m glad for a quick and short answer.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Rohit_Utreja
Rohit_UtrejaAccepted solution
New Participant
Apr 6, 2021 11:03 AM UTC

Hi @milanrapp,

 

There are multiple ways to do it.

First, you can implement it using ACS commons if you have installed it. You can refer to the below URL for the same.

https://adobe-consulting-services.github.io/acs-aem-commons/features/error-handler/index.html

 

Second, If you don't have ACS commons installed in your AEM instance, you can follow the below steps.

1. Go to '/apps/sling/servlet/errorhandler'

2 create 404.jsp, default.jsp in this directory and you can write the code to render content on the error page.

2 replies

Rohit_Utreja
Rohit_UtrejaAccepted solution
New Participant
Apr 6, 2021 11:03 AM UTC

Hi @milanrapp,

 

There are multiple ways to do it.

First, you can implement it using ACS commons if you have installed it. You can refer to the below URL for the same.

https://adobe-consulting-services.github.io/acs-aem-commons/features/error-handler/index.html

 

Second, If you don't have ACS commons installed in your AEM instance, you can follow the below steps.

1. Go to '/apps/sling/servlet/errorhandler'

2 create 404.jsp, default.jsp in this directory and you can write the code to render content on the error page.

Translate
Asutosh_Jena_
New Participant
Apr 6, 2021 10:32 AM UTC

Hi @milanrapp 

 

Please refer the below article and you should be able to create a 404/500 error page using the ACS Commons Error Handler.

https://adobe-consulting-services.github.io/acs-aem-commons/features/error-handler/index.html

 

Thanks!

Translate