UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

webserver.util.buildErrorPage

Previous topic: Next topic:
inactiveTopic webserver.util.buildErrorPage topic started 10/24/1999; 3:16:14 PM
last post 10/24/1999; 3:16:14 PM
user André Radke - webserver.util.buildErrorPage  blueArrow
10/24/1999; 3:16:14 PM (reads: 12661, responses: 0)
Syntax webserver.util.buildErrorPage (short, verbose)

Params short is a string containing a short version of the error message to be displayed.

long is a string containing an explanation of the error message.

Action Builds an HTML error page.

Returns The resulting HTML error page.

Examples webserver.util.buildErrorPage ("404 Not Found", "The file foo.html could not be found.")

   » <HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1><P>The file foo.html could not be found.</P></BODY></HTML>

Notes This verb is used internally by the webserver framework. It's called from webserver.dispatch and webserver.server when an error page needs to be returned to the HTTP client.

See Also webserver.dispatch

webserver.server

webserver.util.buildResponse


Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X