| Applying science to business management |
  
Customizing Error Messages
When the DecisionScript server encounters an error, such as a
user requesting a document that does not exist, it responds with
a standard error screen giving the HTTP error code and a brief
explanation. You can customize the content of these messages by
creating a file with the name nnn.htm where nnn
is the error code number. When an error is encountered,
DecisionScript looks for this file in the same directory where
the error occurred. If the file is not found there, then it looks
in the parent directory, and then the parent's parent directory,
and so on until it reaches the domain root.
For example, if a user attempts to load the page
http://www.yourdomain.com/scripts/order/default.htm
and this page does not exist, then the server will look for
the file
domainroot/scripts/order/404.htm
then
domainroot/scripts/404.htm
then
domainroot/404.htm
If 404.htm is found, its content is returned to the
user. If the file is not found, the default 404 error message is
return.
The following HTML error codes are returned by the server:
400 Bad Request
403 Forbidden
404 Not Found
410 Gone
501 Not Implemented
503 Service Unavailable
|