Error handling for non-200 status codes
check_status(response)
response
Response generated by a request such as httr::GET or httr::POST
httr::GET
httr::POST