Show TOC Start of Content Area

Procedure documentation Defining Custom HTTP Response Status Codes  Locate the document in its SAP Library structure

Use

You can define custom HTTP response codes (in addition to the standard ones defined by the HTTP 1.1 specification in RFC #2616) that the Web Container uses to reply to the users of your Web application in certain cases. This option is available in the web-j2ee-engine.xml descriptor of your Web application.

Procedure

On the web-j2ee-engine.xml screen, proceed as follows:

...

       1.      Open the Response Status screen.

       2.      Select the response codes and choose Add to add a new response status code entry.

       3.      Enter the number of the error code that you want to define in the Code field.

Caution

Make sure the number you specify differs from the standard ones already specified by the HTTP 1.1 specification. For more information about HTTP response status codes, see RFC #2616.

       4.      Enter a description of the code that describes the response status in the Description field.

 

End of Content Area