Skip to main content

normalize_error

Function normalize_error 

Source
pub fn normalize_error(
    provider: &str,
    status: u16,
    body_text: &str,
) -> Result<Lm15Error, ValidationError>
Expand description

Normalize a provider’s HTTP error into an Lm15Error. The provider string selects the dialect through the registry; the per-dialect tables below are the reference’s, copied as data (port.md rule 2).