Type Alias Error
Source pub type Error = AnthropicError;
pub enum Error {
Show 18 variants
BadRequest {
message: String,
status: u16,
},
Authentication {
message: String,
status: u16,
},
PermissionDenied {
message: String,
status: u16,
},
NotFound {
message: String,
status: u16,
},
UnprocessableEntity {
message: String,
status: u16,
},
RateLimit {
message: String,
status: u16,
},
InternalServer {
message: String,
status: u16,
},
Connection {
message: String,
},
ConnectionTimeout,
UserAbort,
StreamError(String),
Configuration {
message: String,
},
InvalidApiKey,
Timeout,
NetworkError(String),
HttpError {
status: u16,
message: String,
},
ServiceUnavailable {
message: String,
},
Other(String),
}