Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

jsonError

JSON error function


Description

This function is used to add a JSON error response to the res object. It is called by the handleErrors() utility function.

Usage

jsonError(req, res, err)

Arguments

req

Request object.

res

Response object.

err

Error Error object.

Value

The incoming res object is modified.

See Also


beakr

A Minimalist Web Framework for R

v0.4.3
GPL-3
Authors
Hans Martin [aut], Jonathan Callahan [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.