http_error_body | R Documentation |
Error Response Body
as_http_error_body()
converts R condition objects to lists that plumber knows
how to serialze to.
http_error_body(message, ..., class = NULL) as_http_error_body(e) ## S3 method for class 'list' as_http_error_body(e) ## S3 method for class 'error' as_http_error_body(e) ## S3 method for class 'rlang_error' as_http_error_body(e) ## S3 method for class 'httr2_http' as_http_error_body(e) ## S3 method for class 'response' as_http_error_body(e)
message |
|
... |
arbitrary R obejcts, as long as plumber knows how to serialize them |
e |
a |
type |
|
error |
|
A list
of subclass http_error_body
with elements error
(the http), type
,
and message
errors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.