response, status, code, api, request, response, send, soap, rest, get, post, put, delete

Method GetResponseStatusCode

API

Returns HTTP Status Code

Watch this video to learn how to use this method

Have a problem with playback?
GetResponseStatusCode returns HTTP status code. So the output is the status code number. Let's do simple method request - execute method. Then output to the messagebox the GetResponseStatusCode. Run - and we can see the status code is 200 meaning response is OK Cange API server address to the wrong one and repeat the scenario We can see that status code is 404 - server not found, just as expected to be.

Usage

Function GetResponseStatusCode()

Method

GetResp...Code

Parameters

This method does not take parameters

Returns

Status Code

Example

VBScript

Server("API Server").Method("Method").Execute
' Check status code
msgbox Server("API Server").Method("Method").GetResponseStatusCode()

JavaScript

Server("API Server").Method("Method").Execute();
// Check status code
alert(Server("API Server").Method("Method").GetResponseStatusCode());

Method

Execute

Comment

Check status code

Method

GetResp...Code

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227