NexusInitError | NexusProvider (during mount) | The initial sync failed for any reason. The cause property carries the underlying error. |
NexusUnauthorizedError | Initial sync, manual nexus.sync() | Server returned HTTP 401 - invalid API key, slug/key mismatch, or revoked key. |
NexusBillingError (v0.2.0) | Initial sync, background sync, evaluateAB | Server returned HTTP 402 - tenant has invoices overdue by more than 14 days. Background sync halts; the cache continues to serve. Use useNexusBillingOverdue() to detect the state. |
NexusAbAddonNotAvailableError (v0.3.0) | useEvaluateAB() callback, nexus.evaluateAB(...) | Server returned HTTP 403 - the AB Testing add-on is not active for the tenant. Only evaluate-ab is gated; useFlag / getFlag keep working. |
NexusServerError (v0.3.1) | nexus.sync() (caught internally) | Server returned HTTP 5xx on /v1/sync. The SDK catches this and schedules an exponential-backoff retry - consumers normally don’t see it. Exported for instanceof checks in custom hooks. |
NexusQuarantinedError (v0.4.0) | nexus.sync() | Server returned HTTP 429 with {"error":"quarantined"} body. The reason (string) and expiresAt (Date) properties expose detail. The SDK automatically pauses background sync until expiresAt. The onQuarantined observer fires at the same time. |
NexusNotFoundError | Initial sync, manual nexus.sync(), evaluateAB | Server returned HTTP 404 - unknown subdomain or missing endpoint. |
NexusPublicKeyError | useNexus().getSecret(...) | The client uses a public key. Thrown synchronously by the imperative method. The hook useSecret() returns undefined instead. |
NexusServiceKindMismatchError (v0.2.0) | useNexus().getSecret(...) | The service kind reported by the server is "frontend". The hook useSecret() returns undefined instead. |
NexusSecretNotFoundError | useNexus().getSecret(...) | The requested key is not in the cache. The hook useSecret() returns undefined instead. |