crunch (version 1.27.7)

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