Public Member Functions | Public Attributes
tornado.httpclient.HTTPError Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes

 code
 response

Detailed Description

Exception thrown for an unsuccessful HTTP request.

Attributes:

code - HTTP error integer error code, e.g. 404.  Error code 599 is
       used when no HTTP response was received, e.g. for a timeout.

response - HTTPResponse object, if any.

Note that if follow_redirects is False, redirects become HTTPErrors,
and you can look at error.response.headers['Location'] to see the
destination of the redirect.

Definition at line 395 of file httpclient.py.


Constructor & Destructor Documentation

def tornado.httpclient.HTTPError.__init__ (   self,
  code,
  message = None,
  response = None 
)

Definition at line 409 of file httpclient.py.


Member Data Documentation

Definition at line 409 of file httpclient.py.

Definition at line 409 of file httpclient.py.


The documentation for this class was generated from the following file:


roswww
Author(s): Jonathan Mace
autogenerated on Thu Jan 2 2014 11:53:30