Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


crunch (version 1.25.0)

handleAPIresponse: Do the right thing with the HTTP response

Description

Do the right thing with the HTTP response

Usage

handleAPIresponse(response, special.statuses = list())

Arguments

response

an httr response object

special.statuses

an optional named list of functions by status code.

Value

The full HTTP response object, just the content, or any other status-specific action