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 errorcode

HTTP Error status code

STRING reason

Optional reason to send with the status code

RECORD options

Options

STRING htmlbody

Override 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