]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: translate http error 304 to appropriate status
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 25 Mar 2015 05:48:03 +0000 (22:48 -0700)
committerCasey Bodley <cbodley@redhat.com>
Fri, 10 Jun 2016 13:00:04 +0000 (09:00 -0400)
So that we can return the appropriate response on a conditioinal multi
zone copy operation.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 20d24e965884af440f94c7e3093587c7b8643cb9)

src/rgw/rgw_http_errors.h

index 7850807b6024b68f4ba6e0acc2f03692f477b399..bd169223fbeab654e86ee5983137e22e0cf8d28f 100644 (file)
@@ -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: