From: Yehuda Sadeh Date: Wed, 25 Mar 2015 05:48:03 +0000 (-0700) Subject: rgw: translate http error 304 to appropriate status X-Git-Tag: v0.94.8~33^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=02f6d8aaa86f4fdb9912763883d079d02589e5be;p=ceph.git rgw: translate http error 304 to appropriate status So that we can return the appropriate response on a conditioinal multi zone copy operation. Signed-off-by: Yehuda Sadeh (cherry picked from commit 20d24e965884af440f94c7e3093587c7b8643cb9) --- diff --git a/src/rgw/rgw_http_errors.h b/src/rgw/rgw_http_errors.h index 7850807b6024b..bd169223fbeab 100644 --- a/src/rgw/rgw_http_errors.h +++ b/src/rgw/rgw_http_errors.h @@ -128,6 +128,8 @@ static inline int rgw_http_error_to_errno(int http_err) if (http_err >= 200 && http_err <= 299) return 0; switch (http_err) { + case 304: + return -ERR_NOT_MODIFIED; case 400: return -EINVAL; case 401: