Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

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

Published:

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

For an optimal Community experience, Please view on Desktop