Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP:code_set(integer)

HTTP:code_set(integer)

Sets the response status code.

Syntax

HTTP:code_set(integer);

Arguments

Name Description

integer A

Integer which specifies the status code.

Events

Applicable in HTTP_RESPONSE.

Example

when HTTP_REQUEST {
HTTP:coe_set(503);
}

Supported Version

FortiADC version 4.8.x and later.

HTTP:code_set(integer)

HTTP:code_set(integer)

Sets the response status code.

Syntax

HTTP:code_set(integer);

Arguments

Name Description

integer A

Integer which specifies the status code.

Events

Applicable in HTTP_RESPONSE.

Example

when HTTP_REQUEST {
HTTP:coe_set(503);
}

Supported Version

FortiADC version 4.8.x and later.