From 02f6d8aaa86f4fdb9912763883d079d02589e5be Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 24 Mar 2015 22:48:03 -0700 Subject: [PATCH] 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) --- src/rgw/rgw_http_errors.h | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.39.5