apiCheckStatus: Check status of request response.

Description Usage Arguments Value Examples

Description

Extract the http status code and convert it into a human readable message. Give warning if has an error.

Usage

1

Arguments

x

A response() object or a number.

Value

FALSE if has an error, otherwise TRUE.

Examples

1
2
flightscanner:::apiCheckStatus(200L)
flightscanner:::apiCheckStatus(404L)

MinZhang95/flightscanner documentation built on July 1, 2019, 9:36 p.m.