HTTP::reject_reason

Description

This returns the reason HTTP aborted the connection.
(((Note: The HTTP::passthrough_reason command works similarly, describing the reason why HTTP disabled itself.)

Syntax

HTTP::reject_reason [as_num]

HTTP::reject_reason

  • Returns the reason HTTP aborted the connection as a string.

HTTP::reject_reason [as_num]

  • Returns the reason HTTP aborted the connection as a numeric id suitable for an error code.

Examples

when HTTP_REJECT {
     log local0. "HTTP Aborted:" [HTTP::reject_reason]
     log local0. "Error code:" [HTTP::reject_reason as_num]
 }