Yawn - Error messages


The directive responsible for returning custom error messages to the user is, for instance:

ErrorDocument 404  sys:system/httpd/notfound.htm

where the number following the directive identifies the HTTP error, and the path that follows specifies the file to be returned by the server as the upon the occurrance of that error. Here are a few examples of what might constitute an error message. They are copies of actual error messages distributed with Yawn.

You can also specify the error messages directly in the configuration file. Simply place the content of the message after the error code, like in the example below:

ErrorDocument 404  "Document not found

The format may be plain text (like above) or HTML:

ErrorDocument 404  "<HTML><TITLE>404 Not Found </TITLE><H1>Not Found</H1><P>The requested URL was not found on this server.</HTML>

Note: There should be exactly ONE quotation mark (") before the string. It is a separator and will not be output to the client.


[Home - Overview - Downloading - Installation - Configuration -
Implementation notes - License - Registering - Contacts]