Skip to content

Errors and retries

CurrentVersion 1.0Updated 31 October 2026API horizon.apis.chat.v1

A failed call returns an HTTP status and a JSON body with code and message. Some errors also have details. Program against code and details. message is text for your logs, and its wording can change.

Example
HTTP/1.1 429 Too Many Requests
{"code":"resource_exhausted",
"message":"the entity's per_second quota of 100 is reached; retry in 1s",
"details":[{"type":"google.rpc.ErrorInfo","value":"…", "debug":{"reason":"QUOTA_EXCEEDED",
"domain":"chat.horizon.1.ae","metadata":{"limit":"per_second","ceiling":"100","retry_after_seconds":"1"}}}]}
Code HTTP Cause What to do
unauthenticated 401 The key is wrong or revoked, or the token expired. Check the key. Get a new token if you use one.
permission_denied 403 The organization is not verified, or the call is not allowed. Do not try again. Ask your 1.ae contact.
invalid_argument 400 The request breaks a rule, for example more than 500 items. Correct the request.
already_exists 409 A batchKey was used in the last 24 hours with different items. Use a new batchKey for a new batch.
resource_exhausted 429 A quota is reached (QUOTA_EXCEEDED), or the batch queue is full (QUEUE_FULL). metadata.limit names the quota. Wait retry_after_seconds, then send the same request again. For per_day, the wait lasts until the next UTC day.
unavailable 503 A short platform interruption. Try again after 1, 2, then 4 seconds, with the same keys.
internal 500 A platform error. Try again later with the same keys. If it continues, tell your 1.ae contact.

An item can fail when the call succeeds. For items with the outcome ERROR:

errorCode What to do
unavailable Send the item again with the same keys.
resource_exhausted The resident’s daily limit is reached. Send the item on the next UTC day, with a new key.

For the other outcomes, see The outcome of an item.