def __init__(self, code, result):
        Exception.__init__(self, code, result)
        self.code = code
        self.result = result


# Add response_code field to logged BadRequest:
@param code: The HTTP response code to set in the response.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/restapi/_error.py/BadRequest.__init__