pub(crate) fn invalid_argument<'a, T: Error + Send + Sync + 'static + Display>( field: &'a str, msg: &'a str, ) -> impl 'a + Fn(T) -> Status