return NOT_FOUND instead of FORBIDDEN when blob does not exist

This commit is contained in:
Ilion Beyst 2022-12-11 18:05:13 +01:00
parent 453ff83e6c
commit ccee0f7ca6

View file

@ -454,7 +454,7 @@ impl RegistryError {
headers: HeaderMap::new(),
},
RegistryError::BlobUnknown => RawRegistryError {
status_code: StatusCode::FORBIDDEN,
status_code: StatusCode::NOT_FOUND,
error_code: "BLOB_UNKNOWN",
message: "Blob does not exist",
headers: HeaderMap::new(),