/// Given a restricted enum defining FfiStatus, also define a series of constants for its variants,
/// If present, a Json-formatted message from our peer that we are representing with this error.
pub(super) fn handle_errors<F>(error_out: Option<OutBoxedPtr<FfiError>>, body: F) -> ArtiRpcStatus