def __init__(self, message, status_code, *args, **kwargs):
        super(OsbsResponseException, self).__init__(message, *args, **kwargs)
        self.status_code = status_code

        # try decoding openshift Status object
        # https://docs.openshift.org/latest/rest_api/openshift_v1.html#v1-status
        try:
            self.json = json.loads(message)
        except __HOLE__:
            self.json = None
dataset/ETHPy150Open projectatomic/osbs-client/osbs/exceptions.py/OsbsResponseException.__init__