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.
Open the web-j2ee-engine.xml file in the Developer Studio using the XML Editor and proceed as follows:
Select the Design tab. In the context menu of the web-j2ee-engine node, choose .
Expand the response-status node and fill in the status-code and reason-phrase fields.
In the status-code field, enter the number of the error code that you want to define.
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.
In the reason-phrase field, enter a description of the code that describes the response status.