Code
|
Action
|
200
|
OK
|
400
|
ZERO_ROWS
|
401
|
REAUTHENTICATE
|
404
|
ZERO_ROWS
|
429
|
RETRY_AFTER
|
503
|
RETRY_AFTER
|
Value
|
Behavior
|
OK
|
The operation was successful without errors. In the case of executing a SELECT, zero or more rows were returned. No further action is taken.
|
ZERO_ROWS
|
Similar to OK, the operation was successful without errors; however, it does not try to find any rows in returned content. This can be used to sync the HTTP response behavior of the REST service to the expected SQL behavior. For example, when a URL is designed to fetch multiple objects, but there are no objects of that type to return, some services return a code 200 and an empty array. However, in that same scenario, other services might return a code 404 as an error to signify that no rows were returned. In those instances, you would want the code 404 returned using the ZERO_ROWS action, instead of as an error.
|
RESET
|
The driver reinitializes the connection as if it were the first statement
|
REAUTHENTICATE
|
The driver tries to authenticate again. This action can be used when an access token expires and a new one needs to be fetched.
|
RETRY_AFTER
|
The driver retries the query up to the number of times specified by the wsretrycount connection property. Note that if the response includes a Retry-After header, the driver will honor it.
|
RETRY_ONCE
|
The driver retries the operation once.
|
RETRY_GOOGLE
|
The driver retries the operation up to the number of times specified by the WSRetryCount property or 5 times, whichever is lesser, using the Google exponential backoff rules.
|
RETRY_AWS
|
The driver retries the operation up to number of times specified by the WSRetryCount property, using the Amazon Web Services exponential backoff rules as implemented in the getWaitTime() method.
|
RETRY_FIXED
|
The driver attempts to retry the operation up to the number of times specified by the WSRetryCount property. The default setting is 1 second.
|
FAIL
|
The operation should throw an exception. For example, a code 400 might mean that the service failed to comprehend the query.
|
Value
|
Description
|
SELECT
|
All API calls involved in sampling endpoints or querying rows
|
LOGIN
|
API calls related to logging in, such as those for authenticating with OAuth2. Note that credentials are not automatically added to these requests.
|
API
|
API calls not related to data, such as those to retrieve schema or user settings.
|
GOODBYE
|
API calls related to logging out without overriding any result status actions like OK.
|