handle_api_errors {rPDBapi} | R Documentation |
This function checks for errors in the HTTP response and stops execution if the request was not successful.
handle_api_errors(response, url = "")
response |
An HTTP response object. |
url |
A string representing the requested URL (for more informative error messages). |
None. It stops execution if an error is detected.