def get_app_status(system_key):
if invalid_system_key(system_key):<EOL><INDENT>raise InvalidSystemKey(<EOL>"<STR_LIT>".format(system_key))<EOL><DEDENT>url = get_appstatus_url(system_key)<EOL>response = DAO.getURL(url, {})<EOL>response_data = str(response.data)<EOL>if response.status != <NUM_LIT:200>:<EOL><INDENT>raise DataFailureException(url, response.status, response_data)<EOL><DEDENT>if len(response.data) == <NUM_LIT:0>:<EOL><INDENT>is_cached = (type(response) == restclients_core.models.MockHttp)<EOL>raise Exception(<EOL>"<STR_LIT>".format(<EOL>url, response_data, str(is_cached)))<EOL><DEDENT>status = parse_statuses(response_data)<EOL>return status<EOL>
Get Undergraduate application status
@return ApplicationStatus object
@InvalidSystemKey if system_key is not valid