AbortWithHTTPError (open)
Abort with the specified HTTP error
Syntax
LOADLIB "mod::system/lib/webserver.whlib";
MACRO AbortWithHTTPError(INTEGER errorcode, STRING reason, RECORD options)Parameters
INTEGER errorcodeHTTP Error status code
STRING reasonOptional reason to send with the status code
RECORD optionsOptions
STRING htmlbodyOverride HTML body to send with the error
Description
Send the proper error page. Any reason is transmitted with the response (for browser consoles) but nothing about the request is logged to the error.log