Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP:status_code_set(value)

HTTP:status_code_set(value)

Sets the HTTP response status code.

Syntax

HTTP:status_code_set(value);

Arguments

Name Description

value

A string which specifies the status code.

Events

  • HTTP_RESPONSE

  • WAF_RESPONSE_ATTACK_DETECTED

  • WAF_RESPONSE_BEFORE_SCAN

Example

when HTTP_RESPONSE {
HTTP:status_code_set(“304”);
}

Supported Version

FortiADC version 4.8.x and later.

HTTP:status_code_set(value)

HTTP:status_code_set(value)

Sets the HTTP response status code.

Syntax

HTTP:status_code_set(value);

Arguments

Name Description

value

A string which specifies the status code.

Events

  • HTTP_RESPONSE

  • WAF_RESPONSE_ATTACK_DETECTED

  • WAF_RESPONSE_BEFORE_SCAN

Example

when HTTP_RESPONSE {
HTTP:status_code_set(“304”);
}

Supported Version

FortiADC version 4.8.x and later.