From: Dmitry Plyakin Date: Wed, 29 Nov 2017 13:03:02 +0000 (+0300) Subject: rgw: fix GET website response error code X-Git-Tag: v12.2.3~217^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4085e87b84a788a4285b5f18f1cd64556c08038d;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 (cherry picked from commit 56344f0e147e1781bb359bfde6878511b077487f) --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 11fdbd4ebc3..4449c1633ea 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -2119,7 +2119,7 @@ void RGWGetBucketWebsite::pre_exec() void RGWGetBucketWebsite::execute() { if (!s->bucket_info.has_website) { - op_ret = -ENOENT; + op_ret = -ERR_NO_SUCH_WEBSITE_CONFIGURATION; } }