| 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
|