diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-12-11 18:05:13 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-12-11 18:05:13 +0100 |
commit | ccee0f7ca6dc2b2542b84922d855f51204033b8a (patch) | |
tree | 37591bc95d670f6e8ce4c41b38008ec9734a5960 | |
parent | 453ff83e6cda30100e9c7d8079854f651f1e3787 (diff) | |
download | planetwars.dev-ccee0f7ca6dc2b2542b84922d855f51204033b8a.tar.xz planetwars.dev-ccee0f7ca6dc2b2542b84922d855f51204033b8a.zip |
return NOT_FOUND instead of FORBIDDEN when blob does not exist
-rw-r--r-- | planetwars-server/src/modules/registry.rs | 2 |
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(), |