class HttpError(IOError):

    def __init__(self, message, status_code, headers):
        IOError.__init__(self)
        self.message = message
        self.status_code = status_code
        self.headers = headers

    def __str__(self):
        return self.message
