RESTResponseV2 - getStatusCode()

Get the numeric HTTP status code returned by the REST provider.

Table 1. Parameters
Name Type Description
Table 2. Returns
Type Description
Number The numeric status code returned by the REST provider, such as 200 for a successful response.
var sm = new sn_ws.RESTMessageV2("Yahoo Finance","get"); //Might throw exception if message doesn't exist or not visible due to scope.
var response = sm.execute();
var statusCode = response.getStatusCode();