Skip to content

Commit

Permalink
fix oci errors
Browse files Browse the repository at this point in the history
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: opencontainers/distribution-spec#206
* TOO_MANY_REQUESTS was added
  • Loading branch information
jwhb committed Jul 17, 2021
1 parent b4bbaf7 commit f728d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oci-distribution/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit f728d85

Please sign in to comment.