Output schema of the REST step in DataStage

When you specify values on the REST step, two group nodes, callStatus and statusLine, are created in the output schema of the REST step. The values for these nodes indicate whether REST calls ran successfully.

The callStatus group node contains details about the REST service calls that did not run successfully. The details are in the following nodes:
success
Returns the Boolean values True or False. True indicates that the REST service call ran successfully, and False indicates that the REST service call did not run successfully.
errorMessage
Returns a string that contains details about errors if the REST service call did not run successfully.
faultHTTPStatusCode
Returns a string that contains the failure status code of the REST service call.
faultHTTPbody
Returns a string that contains details about the failed invocation of the REST service call.
The statusLine group node contains details about the REST service calls that ran successfully. The details are in the following nodes:
httpVersion
Returns a string that contains the HTTP version that was used by the REST service call.
statusCode
Returns an integer value that contains the status code of the REST service call. Some of the status codes are:
  • 200: Indicates that the successful invocation of the REST service.
  • 401: Indicates that the user is not authorized to access the REST service.
  • 500: Indicates the internal server error hence server can't process the REST request.
reasonPhrase
Returns a string that contains details about the successful invocation of the REST service call.