check_status: Check Request Status

Description Usage Value

View source: R/utils.R

Description

This function is called by other functions that submit a requests to revulytics API. It checks the status code returned and tells the user if there was an error code and exits the function.

Usage

1
check_status(request_obj)

Value

If status code is not 200, returns a message to console with appropriate error message and stops execution.


revulyticsR documentation built on Dec. 5, 2020, 1:06 a.m.