From: Dmitry Plyakin Date: Wed, 29 Nov 2017 13:03:02 +0000 (+0300) Subject: rgw: fix GET website response error code X-Git-Tag: v13.0.2~810^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F19236%2Fhead;p=ceph.git 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 --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index fc305a431a22..266cc6697f7d 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -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; } }