pub fn classify_to_standard_code(error_class: &str) -> StandardErrorCodeExpand description
Maps an error class name string to the corresponding AI-Protocol V2 standard error code.
The class name should match the standard names (e.g., "invalid_request").
Aliases such as "authorized_error" (→ authentication) are supported.
Unknown class names map to StandardErrorCode::Unknown.