parse_error_code_and_message: Function to parse out the message and status code of an HTTP...

View source: R/utils-httr.R

parse_error_code_and_messageR Documentation

Function to parse out the message and status code of an HTTP error

Description

Assuming the error code is less than 500, this function will return the

Usage

parse_error_code_and_message(x)

Arguments

x

response(); a response that indicates an error

Value

list; a list containing the error code and message for printing.

Note

This function is meant to be used internally. Only use when debugging.


salesforcer documentation built on March 18, 2022, 6:26 p.m.