![Netscape ENTERPRISE SERVER 6.1 Manual Download Page 112](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653112.webp)
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.
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...