httpGetStatusCode

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