Skip to main content

classify_error

Function classify_error 

Source
pub(super) fn classify_error(error: &Error) -> Option<Classification>
Expand description

Classifies a failed federation attempt for the peer-reachability store.

A content-level 4xx proves the peer reachable and returns None; 5xx, 429, non-JSON responses, and transport failures are transient. A received 410 is treated as a permanent proxy-level signal that the peer is gone.