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
commit f9c7e3d1cd
1 changed files with 1 additions and 1 deletions

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.