Throw an error if the RT status code is an error status

stopforstatus(response)

Arguments

response

(response) An httr response object

Value

Either nothing, or throws an error