From 4532bc530ca3cdc5808e0f571d89f61a7863f4a2 Mon Sep 17 00:00:00 2001 From: jwiegratz Date: Sat, 17 Jul 2021 18:27:16 +0200 Subject: [PATCH] fix oci errors oci errors updated to be even with https://github.com/opencontainers/distribution-spec/blob/main/spec.md#errors-2 * TAG_INVALID and MANIFEST_UNVERIFIED were removed from OCI spec: https://github.com/opencontainers/distribution-spec/pull/206 * TOO_MANY_REQUESTS was added --- crates/oci-distribution/src/errors.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oci-distribution/src/errors.rs b/crates/oci-distribution/src/errors.rs index d1f4ad33e..be633ed98 100644 --- a/crates/oci-distribution/src/errors.rs +++ b/crates/oci-distribution/src/errors.rs @@ -73,14 +73,14 @@ pub enum OciErrorCode { NameUnknown, /// Provided length did not match content length SizeInvalid, - /// Manifest tag did not match URI - TagInvalid, /// Authentication required. Unauthorized, /// Requested access to the resource is denied Denied, /// This operation is unsupported Unsupported, + /// Too many requests from client + Toomanyrequests, } #[cfg(test)]