#[non_exhaustive]pub enum ErrorCode {
PartitionUnresolved,
PlacementMissing,
PlacementBackendUnavailable,
UnsupportedEndpoint,
StaleEpoch,
AuthFailed,
Unauthorized,
UpstreamFailed,
Overloaded,
CursorUnresolvable,
PayloadTooLarge,
}Expand description
A stable, documented, machine-matchable error code.
Codes are part of the public contract: operators and LLMs match on them and
look them up in the generated error reference. #[non_exhaustive] so new
codes are additive (docs/08 §7).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PartitionUnresolved
The partition could not be resolved from the request.
PlacementMissing
No placement exists for the resolved partition.
The placement-lookup backend was unavailable.
UnsupportedEndpoint
The endpoint is not supported for tenancy rewriting in this mode.
StaleEpoch
A write was rejected because its stamped epoch is stale for a migrating
partition (docs/06 §2). Retryable: the client re-resolves.
AuthFailed
Client authentication failed.
The authenticated principal is not authorized for the action.
UpstreamFailed
The upstream cluster failed (timeout, reset, 5xx).
Overloaded
The proxy is shedding load.
CursorUnresolvable
A scroll/PIT cursor could not be resolved to its pinned cluster, its
affinity envelope is missing, malformed, or unverifiable. The client must
re-issue the originating search (docs/03 §6).
PayloadTooLarge
The request body exceeded a size cap (e.g. a single _bulk line over the
per-op limit). A client error: the client must split or shrink the body.