]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_http_errors: add http error code for 503
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 14 Apr 2016 16:20:51 +0000 (18:20 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 18 Nov 2016 19:46:05 +0000 (20:46 +0100)
Useful for multisite where we need to return when master zone is down
for metadata ops
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit a1653d1290434db7729e51a9ad13a1a0852615b3)

src/rgw/rgw_common.h
src/rgw/rgw_http_errors.h

index c392bc83818423a08a8f4e9cb6f1d08f9f1f5f88..bd44cac145e03059595d1a90ef9b5a5b1760482b 100644 (file)
@@ -184,6 +184,7 @@ using ceph::crypto::MD5;
 #define ERR_USER_SUSPENDED       2100
 #define ERR_INTERNAL_ERROR       2200
 #define ERR_NOT_IMPLEMENTED      2201
+#define ERR_SERVICE_UNAVAILABLE  2202
 
 #ifndef UINT32_MAX
 #define UINT32_MAX (0xffffffffu)
index aebf801234a35d6838bedc8eb8b3630637071623..2d998d244c9928493515914afcbde530930ebccf 100644 (file)
@@ -67,6 +67,7 @@ const static struct rgw_http_errors RGW_HTTP_ERRORS[] = {
     { ERR_LOCKED, 423, "Locked" },
     { ERR_INTERNAL_ERROR, 500, "InternalError" },
     { ERR_NOT_IMPLEMENTED, 501, "NotImplemented" },
+    { ERR_SERVICE_UNAVAILABLE, 503, "ServiceUnavailable"}
 };
 
 const static struct rgw_http_errors RGW_HTTP_SWIFT_ERRORS[] = {