def get_status(query_type, command, execution_status, status_dict):
    """ Get the status code of a command according to a query

    Args:
        query_type (str): Type of status query, chunk in this case
        command (str): Command name
        execution_status: State of the last given command execution
        status_dict (:obj: `dict`): Dictionary of status according to a query type, a command name and a state

    Return:
        str: status according to query type, command and execution status
    """
    return  status_dict[query_type][command][execution_status]