From ccee0f7ca6dc2b2542b84922d855f51204033b8a Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 11 Dec 2022 18:05:13 +0100 Subject: [PATCH] return NOT_FOUND instead of FORBIDDEN when blob does not exist --- planetwars-server/src/modules/registry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planetwars-server/src/modules/registry.rs b/planetwars-server/src/modules/registry.rs index 74209aa..5870188 100644 --- a/planetwars-server/src/modules/registry.rs +++ b/planetwars-server/src/modules/registry.rs @@ -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(),