summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-09-18 22:46:01 +0000
committerGerrit Code Review <review@openstack.org>2013-09-18 22:46:01 +0000
commitdad4bf3208fdb275981b77753a4a39d2d8829a85 (patch)
treed3355fca5a299465b79796766387f6e60f18759c
parent60beab79bcd3ac8190357b8f717869a4495230da (diff)
parenta6443f7068cdeaeb680f92849241be042fdc561d (diff)
downloadswift-dad4bf3208fdb275981b77753a4a39d2d8829a85.tar.gz
Merge "Add HTTPSeeOther(303) and HTTPTemporaryRedirect(307) to swob"
-rw-r--r--swift/common/swob.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/swift/common/swob.py b/swift/common/swob.py
index 73efa6070..a8114bb38 100644
--- a/swift/common/swob.py
+++ b/swift/common/swob.py
@@ -60,7 +60,9 @@ RESPONSE_REASONS = {
204: ('No Content', ''),
206: ('Partial Content', ''),
301: ('Moved Permanently', 'The resource has moved permanently.'),
- 302: ('Found', ''),
+ 302: ('Found', 'The resource has moved temporarily.'),
+ 303: ('See Other', 'The response to the request can be found under a '
+ 'different URI.'),
304: ('Not Modified', ''),
307: ('Temporary Redirect', 'The resource has moved temporarily.'),
400: ('Bad Request', 'The server could not comply with the request since '
@@ -1213,7 +1215,9 @@ HTTPAccepted = status_map[202]
HTTPNoContent = status_map[204]
HTTPMovedPermanently = status_map[301]
HTTPFound = status_map[302]
+HTTPSeeOther = status_map[303]
HTTPNotModified = status_map[304]
+HTTPTemporaryRedirect = status_map[307]
HTTPBadRequest = status_map[400]
HTTPUnauthorized = status_map[401]
HTTPForbidden = status_map[403]