ltm rule command HTTP reject reasonΒΆ

iRule(1)						BIG-IP TMSH Manual						  iRule(1)

HTTP::reject_reason
       Returns the reason HTTP is aborting

SYNOPSIS
       HTTP::reject_reason ('as_num')?

DESCRIPTION
       This returns the reason HTTP aborted the connection, either as a string, or as a numeric id suitable for an error code.

RETURN VALUE
VALID DURING
       HTTP_REJECT

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

HINTS
SEE ALSO
       The HTTP::passthrough_reason command works similarly, describing the reason why HTTP disabled itself.

CHANGE LOG
       @BIGIP-12.0.0 --First introduced the command.

BIG-IP							    2022-04-12							  iRule(1)