RestResponse

All HTTP REST calls are set to a result variable of the RestResponse type. The most common property you will find useful is body, although other properties such as headers and statusCode may be useful.

Note that if "ensure success" is unchecked, the response from an HTTP request may be null, in case the server was unavailable. If the server is available but failed due to a failure, it will respond with a RestResponse instance, with the failing statusCode specified.

Property Name Type Description
body text The text body of the response.
headers map A map of the response headers.
statusCode number Status codes 200-307 represent "successful" status codes. Status codes at or above 400 are failure status codes, and if the block had "ensure success" checked, the script will abort.

 

Learn more about Outbound Web Services.

Was this article helpful?