Skip to main content

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.

Syntax:

REST GETRESPONSESTATUS VariableName

where:

  • VariableName is the name of a numeric variable that will contain the value of the response status. The default value is 0

Syntax example:

CREATE VARIABLE TestResponseStatus as Num

REST GETRESPONSESTATUS TestResponseStatus

EXPORTVARIABLE TestResponseStatus TestResponseStatus.txt

Was this article helpful?

We're sorry to hear that.