Learn R Programming

tuber (version 2.0.0)

handle_http_response: Handle HTTP response for quota and rate limiting errors

Description

Centralized error handling for all tuber HTTP functions. Checks for quota exceeded (403) and rate limiting (429) errors.

Usage

handle_http_response(req, auth = "token")

Value

NULL invisibly if no errors, otherwise stops with informative message

Arguments

req

The HTTP request/response object

auth

Authentication method ("token" or "key")