Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP:code_get()

HTTP:code_get()

Returns the response status code, output as integer.

Syntax

HTTP:code_get();

Arguments

N/A

Events

Applicable in HTTP_RESPONSE.

Example

when HTTP_REQUEST {
code = HTTP:code_get();
}

Supported Version

FortiADC version 4.8.x and later.

HTTP:code_get()

HTTP:code_get()

Returns the response status code, output as integer.

Syntax

HTTP:code_get();

Arguments

N/A

Events

Applicable in HTTP_RESPONSE.

Example

when HTTP_REQUEST {
code = HTTP:code_get();
}

Supported Version

FortiADC version 4.8.x and later.