Errors

The errors that may occur when posting requests.

Topics

Constants

ACCESS_DENIED

You don’t have permission to access the endpoint, record, zone, or database.

ATOMIC_ERROR

An atomic batch operation failed.

AUTHENTICATION_FAILED

Authentication was rejected.

AUTHENTICATION_REQUIRED

The request requires authentication but none was provided.

BAD_REQUEST

The request was not valid.

CONFLICT

The recordChangeTag value expired. (Retry the request with the latest tag.)

EXISTS

The resource that you attempted to create already exists.

INTERNAL_ERROR

An internal error occurred.

NOT_FOUND

The resource was not found.

QUOTA_EXCEEDED

If accessing the public database, you exceeded the app’s quota. If accessing the private database, you exceeded the user’s iCloud quota.

SIGN_IN_FAILED

The user failed to sign in.

THROTTLED

The request was throttled. Try the request again later.

TRY_AGAIN_LATER

An internal error occurred. Try the request again.

VALIDATING_REFERENCE_ERROR

The request violates a validating reference constraint.

UNIQUE_FIELD_ERROR

The server rejected the request because there was a conflict with a unique field.

ZONE_NOT_FOUND

The zone specified in the request was not found.

UNKNOWN_ERROR

An unknown error occurred. For example, if the server returns an error that is not recognized by the version of CloudKit JS you are using.

NETWORK_ERROR

A network error occurred, such as a connection time out.

SERVICE_UNAVAILABLE

The CloudKit service could not be reached.

INVALID_ARGUMENTS

The parameters you provided for this method are invalid.

UNEXPECTED_SERVER_RESPONSE

CloudKit JS was not able to decode the server response.

CONFIGURATION_ERROR

CloudKit JS configuration error. For example, no containers are configured.

SHARE_UI_TIMEOUT

The share UI failed to load and timed out.