'Construct a new Kato request status.
Args:
operation: The operation this status is for.
original_response: The original JSON string with the status identifier.'

def __init__(self, operation, original_response=None):

    super(_KatoStatus, self).__init__(operation, original_response)
    if (not original_response.ok()):
        self.__finished = True
        self.__failed = True
        return
    self.__finished = False
    self.__failed = False
    doc = None
    try:
        doc = json.JSONDecoder().decode(original_response.output)
    except ValueError:
        pass
    except TypeError:
        pass
    if isinstance(doc, dict):
        self._bind_detail_path(doc['resourceUri'])
        self._bind_id(doc['id'])
    else:
        self._bind_error('Invalid    response="{0}"'.format(original_response))
        self.__finished = True
        self.__failed = True
        self.current_state = 'CITEST_INTERNAL_ERROR'
