pub(super) fn classify_error(error: &Error) -> Option<Classification>Expand description
Classifies a failed federation attempt for the peer-reachability store, or
None when it carries no reachability signal. An HTTP response proves the
peer reachable, so a content-level 4xx (a forbidden invite, a 403 backfill)
must not count against it; only 5xx or an explicit rate-limit (429) records
Transient. A 410 is the exception: a Matrix server never returns it for
one endpoint and not another, so a received 410 is a proxy operator
deliberately signaling the peer is gone, and records Permanent. Transport
failures carry no response and are always transient.