pub fn invalid_params<T: Debug>(param: &str, details: T) -> Error