dot-HandleHttpError: Handle an HTTP response that returned an error code. In most...

.HandleHttpErrorR Documentation

Handle an HTTP response that returned an error code. In most cases, the response will contain a JSON document with metadata about the error. The JSON is turned into a string and added to the message. This method stops execution and does not return.

Description

Handle an HTTP response that returned an error code. In most cases, the response will contain a JSON document with metadata about the error. The JSON is turned into a string and added to the message. This method stops execution and does not return.

Usage

.HandleHttpError(method, uri, resp)

Arguments

method

a string specifying the HTTP method ("GET", "POST", "DELETE")

uri

the URI/URL that was requested which produced the error

resp

the response object from curl::curl_fetch_memory()


Paradigm4/SciDBR documentation built on Nov. 9, 2023, 4:58 a.m.