Error Stage; Send-Error - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Error Stage

Error Stage
If a server application function results in an error, it sets the HTTP response status
code and returns the value
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

response status.
qos-error
the error and what the value of the QOS statistic was.
send-error
Applicable in
The
send-error
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
reason
uri
112
Netscape Enterprise Server NSAPI Programmer's Guide • April 2002 (Draft)
REQ_ABORTED
sends an HTML file to the client in place of a specific HTTP
returns an error page stating which quality of service limits caused
-class directives.
Error
function sends an HTML file to the client in place of a specific
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.
(optional) The text of one of the reason strings (such as
"Unauthorized" or "Forbidden"). The string is not case
sensitive.
(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.
. When this happens, the server stops

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents