MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / status_code

Method status_code

crates/chat-cli/src/cli/chat/mod.rs:586–602  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

584
585impl ChatError {
586 fn status_code(&self) -> Option<u16> {
587 match self {
588 ChatError::Client(e) => e.status_code(),
589 ChatError::Auth(_) => None,
590 ChatError::SendMessage(e) => e.status_code(),
591 ChatError::ResponseStream(_) => None,
592 ChatError::Std(_) => None,
593 ChatError::Readline(_) => None,
594 ChatError::Custom(_) => None,
595 ChatError::Interrupted { .. } => None,
596 ChatError::GetPromptError(_) => None,
597 ChatError::NonInteractiveToolApproval => None,
598 ChatError::CompactHistoryFailure => None,
599 ChatError::AgentSwapError(_) => None,
600 ChatError::Conduit(_) => None,
601 }
602 }
603}
604
605impl ReasonCode for ChatError {

Callers 5

nextMethod · 0.45
send_messageMethod · 0.45
compact_history_implMethod · 0.45
handle_responseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected