api_get_request function

Wrapper of httr::GET that handles status errors and custom headers