Errors

Always check the HTTP response code. If the response code is not 202 (HTTP OK), there is no JSON to parse.

The API has several pre-defined error ids.

Error code Description
clientError Reports something wrong with the client reuqest.
invalidOrd Reports an invalid address.
permissionError Reports permissions-related issues.
serverError Reports an unexpected error on the server.
unknownSubscription Reports invalid subscription names.