mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
rgw: fix GET website response error code
Change NoSuchKey error code to NoSuchWebsiteConfiguration, when bucket doesn't have website configuration. Fixes: http://tracker.ceph.com/issues/22272 Signed-off-by: Dmitry Plyakin <dplyakin@gmail.com>
This commit is contained in:
parent
6f3553351d
commit
56344f0e14
@ -2128,7 +2128,7 @@ void RGWGetBucketWebsite::pre_exec()
|
||||
void RGWGetBucketWebsite::execute()
|
||||
{
|
||||
if (!s->bucket_info.has_website) {
|
||||
op_ret = -ENOENT;
|
||||
op_ret = -ERR_NO_SUCH_WEBSITE_CONFIGURATION;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user