def __init__(self, code, response_body=None):
        """Constructor.

        :param int code: HTTP code.
        :param str response_body: HTTP response body.
        """

        self.code = code
        self.body = response_body

        super().__init__('HTTP %d: %s' % (
            self.code, self.body or http.client.responses.get(code, 'Unknown')))
def __init__ ( self , code , response_body = None ) : self . code = code self . body = response_body super ( ) . __init__ ( 'HTTP %d: %s' % ( self . code , self . body or http . client . responses . get ( code , 'Unknown' ) ) )
Constructor.

        :param int code: HTTP code.
        :param str response_body: HTTP response body.