Error codes

Error response

A request that fails is answered with an HTTP status code and a JSON body:

{
  "errorCode": "INVALID_PARAMETER_VALUE",
  "errorMessage": "limit must be smaller or equal to 10000",
  "requestId": "A011.1598447117.14"
}

The body is JSON also when another format was requested. For format=HTML the response is an error page, and for CSV the message is returned as text. Log the requestId and quote it when you contact support.

If the error occurs after the server has started to send data, the status is 200 and the response is incomplete. A truncated response ends with a line -- Response truncated due to CODE : message --. Treat a response that does not parse completely as failed.

Important: New error codes can be added at any time. Handle an error code that you do not know on the basis of the HTTP status.

Status codes

StatusMeaningError codesWhat to do
400The request is not valid, or the API key is not valid.INVALID_API_KEY, INVALID_USERNAME_OR_PASSWORD, INVALID_PARAMETER, INVALID_PARAMETER_VALUE, MISSING_PARAMETER, FROM_BIGGER_THAN_TO, INVALID_RANGE_VALUE, INVALID_CURSOR, TOO_MANY_RESULTS, INTERNAL_LIMIT_EXCEEDED, NO_MAPPING_TO_SERVICE, SERVICE_UNSUPPORTED, SERVER_REQUEST_TIMEOUT, CLIENT_REQUEST_TIMEOUT, BAD_REQUESTFor INVALID_API_KEY, obtain a new key and repeat the request once. For other codes, correct the request. Do not repeat it unchanged. For INTERNAL_LIMIT_EXCEEDED and TOO_MANY_RESULTS, use more selective filters.
401The user is not valid.INVALID_USERCheck your credentials and account.
403You are not entitled to the data.NOT_ENTITLEDContact your account manager.
404The namespace, entity, instance or file does not exist.NAMESPACE_DOES_NOT_EXIST, TYPE_DOES_NOT_EXIST, INSTANCE_DOES_NOT_EXIST, FILE_NOT_FOUND, NOT_FOUNDCorrect the request.
429A quota or the parallel request limit was exceeded.TOO_MANY_REQUESTS, QUOTA_EXCEEDED, APIKEY_LIMIT_EXCEEDED, LOGIN_ATTEMPTS_EXCEEDEDWait, then retry with increasing delays. See Usage quota.
500The server failed.INTERNAL_FAILURERetry with a delay. If it persists, contact support with the requestId.
502, 503The service is not available.NOT_SUPPORTED_ON_PARTITION, SERVICE_UNAVAILABLERetry with a delay.

An invalid or expired API key is reported with status 400 and the error code INVALID_API_KEY, not with status 401. In a browser, such a request to a HTML page redirects to the sign-in page.

Retrying

  • Retry on 429, 500, 502, 503 and 504, with increasing delays. The server sends Retry-After: 1 with 429, 503 and 504, which is a minimum. After QUOTA_EXCEEDED a longer delay is appropriate because the quota is measured over a minute or an hour.
  • Retry once with a new API key after INVALID_API_KEY.
  • Do not retry other 4xx errors without changing the request.