Skip to content

SessionErrorCode

const SessionErrorCode: object

Defined in: packages/core/src/session/schema.ts:64

Stable, machine-readable codes for session failures.

Codes are for logs, metrics and API responses; the tag names and messages stay free to change. Pair every code with SessionRepair.

readonly alreadyExists: "session/already-exists" = "session/already-exists"

readonly closed: "session/closed" = "session/closed"

readonly conflict: "session/conflict" = "session/conflict"

readonly expired: "session/expired" = "session/expired"

readonly inconsistentStore: "session/inconsistent-store" = "session/inconsistent-store"

readonly leaseLost: "session/lease-lost" = "session/lease-lost"

readonly notFound: "session/not-found" = "session/not-found"

readonly store: "session/store" = "session/store"