Error Stage
112
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
Error Stage
If a server application function results in an error, it sets the HTTP response status
code and returns the value
REQ_ABORTED
. When this happens, the server stops
processing the request. Instead, it searches for an Error directive matching the
HTTP response status code or its associated reason phrase, and executes the
directive’s function. If the server does not find a matching Error directive, it returns
the response status code to the client.
The following Error-class functions are described in detail in this section:
•
send-error
sends an HTML file to the client in place of a specific HTTP
response status.
•
qos-error
returns an error page stating which quality of service limits caused
the error and what the value of the QOS statistic was.
send-error
Applicable in
Error
-class directives.
The
send-error
function sends an HTML file to the client in place of a specific
HTTP response status. This allows the server to present a friendly message
describing the problem. The HTML page may contain images and links to the
server’s home page or other pages.
Parameters
path
Specifies the full file system path of an HTML file to send to
the client. The file is sent as
text/html
regardless of its name
or actual type. If the file does not exist, the server sends a
simple default error page.
reason
(optional) The text of one of the reason strings (such as
“Unauthorized” or “Forbidden”). The string is not case
sensitive.
uri
(optional) Specifies the URI to display when an error is
encountered. The URI can be an HTML or SHTML page, a
CGI, a JSP, and so on.
If Enterprise Server is unable to access the specified URI, it
will try to display the file specified by the
path
parameter.
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...