httpGetStatusCode

Description

Retrieves the HTTP status code of the latest HTTP response.

Return Type

Number

The value of the status code

Example

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

See also