Search code examples
spring-mvcerror-handlingweb.xmlsap-commerce-cloudhttp-status-code-500

Custom 500 error page in Hybris


I have to redirect the 500 error page you see in the picture on an empty page in Hybris.

enter image description here

How can do this?


Solution

  • Have you tried enabling error-page in web.xml ?

    <error-page>
        <exception-type>java.lang.Exception</exception-type>
        <location>/WEB-INF/pages/error/serverError.jsp</location>
    </error-page>
    <error-page>
        <error-code>500</error-code>
        <location>/WEB-INF/pages/error/serverError.jsp</location>
    </error-page>