Method GetResponseStatusCode
Returns HTTP Status CodeUsage
Function GetResponseStatusCode(
Boolean Report [Optional]
)
Parameters
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step
Returns
Status Code
Example
VBScript
Server("API Server").Method("Method").Execute
' Check status code
msgbox Server("API Server").Method("Method").GetResponseStatusCode(True)
JavaScript
Server("API Server").Method("Method").Execute();
// Check status code
alert(Server("API Server").Method("Method").GetResponseStatusCode(true));
Comment
Check status code