Skip to main content

SlingshotResponse

One of the three major response types.

The SlingshotResponse response is used in two situations:

  • An error response where the server returns a 4XX or 5XX HTTP response.
  • The server needs more time to process a request where the server returns a 200 HTTP response.

The SlingshotResponse response is represented by the following XML:

  <!--?xml version="1.0"?-->
<slingshotresponse xmlns="http://schemas.ravenslingshot.com/SlingshotResponse/2010">
<status>INVALID_REQUEST</status>
<errorinfo>Could not send file to Field Computer</errorinfo>
<result>
</result>
</slingshotresponse>

Data Description

This response holds the following details:

  • status - The overall status of the response. Values include, but are not limited to.
    • INVALID_REQUEST something in the request was incorrect. The API client should use the HTTP status code to help determine what is wrong with the request.
    • MORE_TIME_NEEDED The Slingshot API server needs more time to complete the request. The API client should consult the Retry-After HTTP header to find out how many seconds it should wait - before attempting to retrieve the data again.
  • errorInfo - Contains text that can be displayed to the user.
  • result - When result has a value, it will contain details that can be sent to Raven support for further debugging.