use Error;
use Status;
use *;
/// This helper is useful when you call .delete() and want to ignore "not found" errors
/// the NOT_FOUND status will be converted into an Ok variant with a Status object
///
/// Example:
/// ```no_run
/// # use kube_client_ext::ignore_not_found;
/// # use kube_client_ext::KubeClientExt;
/// # use kube_client::Client;
///
/// async fn delete_and_ignore_not_found(client: &Client) -> bool {
/// client
/// .namespaces()
/// .delete("nonexistent", &client.delete_params())
/// .await
/// .or_else(ignore_not_found)
/// .is_ok()
/// }
/// ```