handle_api_errors: Handle API Errors

View source: R/handle_api_errors.R

handle_api_errorsR Documentation

Handle API Errors

Description

This function checks for errors in the HTTP response and stops execution if the request was not successful.

Usage

handle_api_errors(response, url = "")

Arguments

response

An HTTP response object.

url

A string representing the requested URL (for more informative error messages).

Value

None. It stops execution if an error is detected.


rPDBapi documentation built on Sept. 11, 2024, 6:37 p.m.