R/util.R
stopforstatus.Rd
Throw an error if the RT status code is an error status
stopforstatus(response)
(response) An httr response object
httr
Either nothing, or throws an error