sync s3s, return UnauthorizedAccess error code when credentials is none

This commit is contained in:
weisd
2025-02-25 10:05:03 +08:00
parent dae6616720
commit 9f57ea9bb6
7 changed files with 26 additions and 28 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ impl S3Access for FS {
);
if cx.credentials().is_none() {
return Err(s3_error!(AccessDenied, "Signature is required"));
return Err(s3_error!(UnauthorizedAccess, "Signature is required"));
};
// TODO: FIXME: check auth