http://onionworks.net/2004/renderengine/web
httpException (errorCode : int, [message : string]) : void
So that HTTP error pages can be forced to open, there is the method “httpException”. It can be determined by specifying the error code which error page is delivered to the user. An error text can be specified with “message” as an option.
<xsl:value-of select="web:httpException(404, 'The page could not be loaded.')" />
404 error page with error text