diff --git a/cyclone/httpclient.py b/cyclone/httpclient.py index c0abd534f8..efa931e587 100644 --- a/cyclone/httpclient.py +++ b/cyclone/httpclient.py @@ -132,7 +132,7 @@ def fetch(self): else: break - response.error = None + response.error = response.code >= 400 response.headers = dict(response.headers.getAllRawHeaders()) # HTTP 204 and 304 responses have no body # http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html