The API will handling error by responding with an HTTP status code. In the list below the different status
codes are listed en behind you can see what will cause the specific status code.
401 (Unauthorized)
An invalid token or an expired token is used when requesting the API. Use the oauth2 flow to get
a new access token by either requesting a new one or by refreshing the access token with a refresh token.
See the OAuth2 tutorial
for more details
403 (Forbidden)
You are successfully authenticated but don't have the rights/scopes to access this data.
404 (Not Found)
The requested data was not found. e.g. an invalid farm_id
500 (Internal Server Error)
If an internal error occurs, this should not happen, but if it does an 500 http status code is returned.
Notes
Invalid parameters passed into the API requests are ignored. The don't result in an error