Error

                                                                                                                                                                                                                                                                                                                                      Back to [Book]     [Topic]

Error

If a SAF results in an error, the server stops executing all other directives and immediately starts executing the Error directives. For more information, see Error.

The following Error-class functions are described in detail in this section:

In addition, the following common SAFs are valid for the Error directive:

error-j2ee

The error-j2ee function handles errors that occur during execution of web applications deployed to the Web Server individually or as part of full Java EE applications.

Parameters

The following table describes the parameter for the error-j2ee function.

Table 7-107 error-j2ee Parameter

Parameter Description
bucket (Optional) Common to all obj.conf functions. Adds a bucket to monitor performance. For more information, see The bucket Parameter.

See Also

qos-error

The qos-error function returns an error page stating the quality of service that caused the error, and the value of the QOS statistic.

Parameters

The following table describes parameters for the qos-error function.

Table 7-108 qos-error Parameters

Parameter Description
code (Optional) Three-digit number representing the HTTP response status code, such as 401 or 407. The recommended value is 503.This can be any HTTP response status code or reason phrase according to the HTTP specification. A list of common HTTP response status codes and reason strings is as follows:
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 500 Server Error
bucket (Optional) Common to all obj.conf functions. Adds a bucket to monitor performance. For more information, see The bucket Parameter.

Example

Error fn="qos-error" code="503"

See Also

qos-handler

Labels

configurationfile configurationfile Delete
java java Delete
configuration configuration Delete
administrator's administrator's Delete
webserver webserver Delete
sun sun Delete
application application Delete
system system Delete
server server Delete
guide guide Delete
file file Delete
webserver70 webserver70 Delete
sunjava sunjava Delete
web web Delete
webtier webtier Delete
+configguide +configguide Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact