Merge "server 500 should not be a client error"

This commit is contained in:
Jenkins
2014-01-22 15:59:56 +00:00
committed by Gerrit Code Review

View File

@@ -245,7 +245,7 @@ class HTTPClient(object):
self.log_http_response(resp)
if 400 <= resp.status < 600:
LOG.error("Request returned failure status.")
LOG.debug("Request returned failure status: %d" % resp.status)
raise exc.from_response(resp, body_str)
elif resp.status in (301, 302, 305):
# Redirected. Reissue the request to the new location.