def check_response(resp_dict):
    """Analyzes the dictionary response from an API call, 'resp_dict';
    if the response indicates an error, raise an appropriate Exception, 
    otherwise return 'resp_dict'.
    """
    if resp_dict['status'] == 'success':
        return resp_dict
    elif resp_dict['status'] == 'fail':
        raise ValueError(f"Bad Argument: {resp_dict['data']}")
    else:
        raise RuntimeError(f"Error at server: {resp_dict['message']}")