dot-check_response_status: Check response status

Description Usage Arguments

Description

Verifies if response status is correct. If not it stops execution with message.

Usage

1
.check_response_status(resp, expected_code, error_message = "Request failed")

Arguments

resp

httr response

expected_code

numeric with expected code e.g. 201

error_message

character with error message


CaRdiffR/covidR-api documentation built on March 30, 2020, 3:11 a.m.