Skip to Content
Author's profile photo Former Member

Customizing HTTP Default Error Pages for SAP NetWeaver Portal 7.3

It really took our significant time to achieve subjected goal. We started with the traditional way of modifying web.xml of portal root application but to no success. It was time for research which took us to following sap help link.

Changing the Look and Feel of the Default Error Pages

But there were open questions like

  1. How to put our custom HTML page design in properties file.
  2. Server location to put new properties file?
  3. Do we need to specify full path to properties file in NWA configuration of just property file name?

With this blog I am putting step by step solution to put your own custom html page design in properties file.


As mentioned in sap link we will create our own custom properties file to show our custom look and feel for HTTP error pages. Default file is available within 

Before that

Here is a quick analysis of comparison of the source code of Default 404-Not Found http error page and default properties file as in which line is coming from which key of default properties file.


With this information, now let’s start putting our custom look and feel in new properties file.

Ø Get  file from following server location.


Ø Change the extension of jar from .jar to .zip. Unzip the content and  get the default properties file at 


Ø Edit the default properties file .Put your own HTML page design in relevant keys of properties file with the analysis shown in above screen shot. Save the file t with a different name say With this blog I have attached my custom properties file.

Ø On Server directory\usr\sap\trans\ create a folder say  “Custom” and place your new file there .The complete path now for new properties file is


Ø Replace the existing properties file with a custom one

1.     Open the SAP NetWeaver Administrator.

2.    Choose Configuration Management Infrastructure Java System Properties. Specify the template in the Templates section.

3.    Choose the Services tab in the Details section.

4.    Choose the HTTP Provider service.

5.    Click on Show Advanced Properties at top.

6.    Select the ErrorPageTemplateLocation property in the Extended Details section. Choose Modify.

7.    Specify the location of the file that contains the new user interface. Choose Set and then Save.


Ø Restart your server

     That’s it …You are done. Now your custom look for http error pages will reflect.

                 Before Modification

404 HTTP Error Page


After Modification

404 HTTP Error Page


503 HTTP Error Page




Please do correct me if I have mentioned anything wrong.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Preeti Pradhan
      Preeti Pradhan


      Nice blog. I did implement on our portal . however the change was visible when the parameter was changed but now again it has been replaced back to original SAP one

      WE did not do any change in portal after this change. Do you have any idea?

      Author's profile photo Former Member
      Former Member


      Nice Blog!!!

      Is there a way to redirect a 400 Error Code (Session Timeout/Bad Request)?

      Can we deploy a servlet and pass the custom Servlet to be used by SAP JAVA Error handling?