def validateData(response):
    """validates that NASA API response returned data

    Args:
        response (Dict): custom response from API

    Returns:
        Boolean: True is data was returned False otherwise
    """
    """ this is NASA's service response when they have no data for the day {
    "code": 404,
    "msg": "No data available for date: 2020-10-04",
    "service_version": "v1"
    } """

    NO_DATA_MSG = 'No data available for date'
    MSG_RESPONSE_PARAMETER = 'msg'

    if MSG_RESPONSE_PARAMETER in response['response_data_raw']:
        msg = response['response_data_raw']['msg']

        if response['status_code'] == 404 and NO_DATA_MSG in msg:
            return False
    else:
        if response['status_code'] == 200:
            return True