Skip to main content

error_outcome

Function error_outcome 

Source
fn error_outcome(kind: &ApiErrorKind) -> Option<Outcome>
Expand description

Classify a failed notification. An undecryptable token and 410 describe the recipient’s subscription, and bridge errors are attributed to FCM/APNs. Other 4xx responses (including the 404 for an unknown API version) are defects in the sender’s request (URL, headers, VAPID, payload size) and say nothing about push or the recipient, so they’re not counted.