aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/modules/registry.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-12-11 18:05:13 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-12-11 18:05:13 +0100
commitccee0f7ca6dc2b2542b84922d855f51204033b8a (patch)
tree37591bc95d670f6e8ce4c41b38008ec9734a5960 /planetwars-server/src/modules/registry.rs
parent453ff83e6cda30100e9c7d8079854f651f1e3787 (diff)
downloadplanetwars.dev-ccee0f7ca6dc2b2542b84922d855f51204033b8a.tar.xz
planetwars.dev-ccee0f7ca6dc2b2542b84922d855f51204033b8a.zip
return NOT_FOUND instead of FORBIDDEN when blob does not exist
Diffstat (limited to 'planetwars-server/src/modules/registry.rs')
-rw-r--r--planetwars-server/src/modules/registry.rs2
1 files changed, 1 insertions, 1 deletions
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(),