httpGetStatusCode

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Availability

This routine is available starting with SIL Engine™ 4.1.0.

Syntax

httpGetStatusCode()

Description

Retrieves the HTTP status code of the latest HTTP response.

Parameters

none

Return type

number

The value of the status code

Example

number statusCode = httpGetStatusCode();
if (statusCode >= 200 && statusCode < 300) {
	print("Successful response!");
}

See also