Rest GetResponseStatus
Use this command to retrieve the HTTP response status for the REST EXECUTEGET, REST EXECUTEHEAD, REST EXECUTEPOST, or REST EXECUTEPUT command that was previously invoked. The response status is reset after any REST EXECUTEGET, REST EXECUTEHEAD, REST EXECUTEPOST, or REST EXECUTEPUT command.
where:
- VariableName is the name of a numeric variable that will contain the value of the response status. The default value is 0
Copy
Syntax example
CREATE VARIABLE TestResponseStatus as Num
REST GETRESPONSESTATUS TestResponseStatus
EXPORTVARIABLE TestResponseStatus TestResponseStatus.txt