Available nowIn progressLast updated: June 2026

Errors

Lariba Cloud APIs should return predictable errors so clients can distinguish authentication failures, validation problems, rate limits, duplicates, and temporary infrastructure failures.

401 / 403

Auth or policy failure.

422

Event validation failed.

429

Rate limited.

503

Temporary dependency failure.

Standard error body

Error responses should expose a stable code, a readable message, a request id, and whether the client can retry safely.

{
  "error": {
    "code": "invalid_source_key",
    "message": "Source API key is invalid or revoked.",
    "request_id": "req_abc123",
    "retryable": false
  }
}

Error reference

Clients should handle 401, 403, 422, 429, and 503 explicitly.

HTTPCodeMeaningRetryable
400bad_requestMalformed JSON, missing required header, or invalid query parameter.No
401invalid_source_keyThe source API key is missing, invalid, expired, malformed, or revoked.No
403source_disabledThe source exists but is disabled and cannot ingest events.No
403project_forbiddenThe caller is outside the allowed project or workspace boundary.No
404not_foundThe requested source, event, project, or destination was not found in the caller boundary.No
409duplicate_eventThe request conflicts with an existing event or duplicate idempotency record.Usually no
409conflictThe requested operation conflicts with the current resource state.Usually no
422schema_validation_failedThe event envelope or payload failed validation.No
429rate_limit_exceededThe source or project exceeded a quota or rate limit.Yes
500internal_errorUnexpected server failure.Unknown
503queue_unavailableThe queue or async processing dependency is temporarily unavailable.Yes
503storage_unavailableDurable storage is temporarily unavailable. The event should not be treated as stored.Yes

Handle authentication errors explicitly

Treat 401 and 403 as configuration or permission problems. Do not retry blindly.

Fix validation errors at the producer

Treat 422 as a payload or envelope issue. Correct the event shape before retrying.

Back off on rate limits

Treat 429 as a throttling signal. Retry later with backoff and jitter.

Retry temporary failures safely

For 503 responses, retry with the same Idempotency-Key so duplicate records are not created.

For temporary failures, retry with the same Idempotency-Key. This keeps retries safe and helps avoid duplicate operational records.
Do not treat a 500 or 503 as confirmation that an event was stored. Preserve event_id and Idempotency-Key, then retry safely when the client can do so.
Authentication and authorization failures should trigger key, source, or project configuration review. They should not be retried in a tight loop.
Error codes should stay stable across API responses, SDK exceptions, dashboard banners, and operational logs.