pub fn is_permanent_error(error: &Error) -> bool
Determines if an error is permanent (should not retry)