pub type ErrorType = ErrorClass;Expand description
Backward-compatible name retained while callers migrate to ErrorClass.
Aliased Type§
pub enum ErrorType {
Show 25 variants
InvalidArgument,
CannotConnect,
Disconnected,
ConnectionTimeout,
ResponseTimeout,
Cancelled,
ResourceExhausted,
WorkerOverloaded,
Unavailable,
WorkerUnavailable,
Backend(BackendError),
InvalidRequest,
Unauthenticated,
PermissionDenied,
NotFound,
Conflict,
PayloadTooLarge,
UnsupportedMedia,
RateLimited,
CapacityExhausted,
BackendProtocol,
DeadlineExceeded,
NotImplemented,
Internal,
Unknown,
}Variants§
InvalidArgument
The request contains invalid input (e.g., prompt exceeds context length).
CannotConnect
Failed to establish a connection to a remote worker.
Disconnected
An established connection was lost unexpectedly.
ConnectionTimeout
A connection or request timed out.
ResponseTimeout
The backend accepted the request but stopped responding (stream inactivity timeout).
Cancelled
The request was cancelled (e.g., client disconnected).
ResourceExhausted
The capacity constraint cannot be relieved by selecting another worker. This most commonly means the whole eligible worker pool is exhausted.
WorkerOverloaded
One selected worker is out of capacity while others may still have room.
Distinct from Self::ResourceExhausted so a request whose routing
constraints permit reassignment can migrate; both surface as HTTP 529.
No backend worker is currently available to handle the request.
One addressed worker answered that it does not serve this request’s
endpoint instance (stale discovery or a worker shutting down) while
other workers may. Distinct from Self::Unavailable so the request
can migrate; both surface as HTTP 503.
Backend(BackendError)
Error originating from a backend engine.
InvalidRequest
The client request is malformed or fails request-level validation.
Unauthenticated
Authentication credentials are missing or invalid.
PermissionDenied
The authenticated caller is not permitted to perform the operation.
NotFound
The requested resource does not exist.
Conflict
The request conflicts with current resource state.
PayloadTooLarge
The request body exceeds a configured size limit.
UnsupportedMedia
The request uses an unsupported media type.
RateLimited
The caller exceeded an admission or request-rate limit.
CapacityExhausted
The eligible worker pool has no capacity.
BackendProtocol
A backend response violates the expected protocol.
DeadlineExceeded
The operation exceeded its deadline.
NotImplemented
The requested operation is not implemented.
Internal
An internal defect or unclassified failure occurred.
Unknown
Uncategorized or unknown error.