Parses and returns the response if successful, otherwise stops with an error message.

handle_paddle_response(resp)

Arguments

resp

Response object from `httr2::req_perform()`

Value

Parsed JSON content from response, or throws error if HTTP status is not 2xx.