error_from_app: return an error from a Rook app

Description Usage Arguments Details Value

View source: R/error_from_app.R

Description

This function is called to generate an in-band error reply to the API request. The remote requestor will still receive a bzip2-compressed JSON-formatted object, but that object will have a single field named "error", whose value is the string passed to this function.

Usage

1

Arguments

error

character scalar error message to return to app caller

...

additional parameters describing the error. These are JSON-encoded into the API response.

Details

Objects returned from successful API calls never include a top-level field called "error".

Value

Similar to the return value from


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.