pub enum ErrorCode {
Show 17 variants
InvalidRequest,
UnsupportedCapability,
Configuration,
Authentication,
PermissionDenied,
SafetyRejected,
RateLimited,
Overloaded,
Timeout,
Cancelled,
Upstream,
Protocol,
Input,
Artifact,
Session,
IdempotencyConflict,
Internal,
}Expand description
Stable machine-readable error classification.
Variants§
InvalidRequest
A request failed intrinsic validation.
UnsupportedCapability
The selected provider cannot honor the request.
Configuration
Configuration is absent or invalid.
Authentication
Provider authentication is absent, expired, or rejected.
PermissionDenied
The caller is authenticated but not entitled to the operation.
SafetyRejected
A safety system rejected the request.
RateLimited
A provider or bridge rate limit was reached.
Overloaded
Admission control rejected the request because capacity is exhausted.
Timeout
The operation exceeded its deadline.
Cancelled
The caller or runtime cancelled the operation.
Upstream
An upstream provider returned an invalid or unsuccessful response.
Protocol
The upstream protocol no longer matches the supported schema.
Input
An input could not be loaded or validated.
Artifact
A generated artifact could not be verified or published.
Session
A requested session does not exist or cannot be accessed.
IdempotencyConflict
An idempotency key conflicts with a different request.
Internal
An unexpected internal failure occurred.
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ErrorCode
Source§impl JsonSchema for ErrorCode
impl JsonSchema for ErrorCode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more