jsonError: JSON error function

Description Usage Arguments Value See Also

View source: R/utils-middleware.R

Description

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

Usage

1
jsonError(req, res, err)

Arguments

req

Request object.

res

Response object.

err

Error Error object.

Value

The incoming res object is modified.

See Also

Request, Response, Error


beakr documentation built on April 7, 2021, 1:06 a.m.