def _get_messages(data):
    """
    Get messages (ErrorCode) from Response.

    :param data: dict of datas
    :return list: Empty list or list of errors
    """
    error_messages = []
    for ret in data.get('responses', [data]):
        if 'errorCode' in ret:
            error_messages.append('{0}: {1}'.format(ret['errorCode'], ret.
                get('message')))
    return error_messages
