R/utils-middleware.R
jsonError.Rd
This function is used to add a JSON error response to the res object. It is called by the handleErrors() utility function.
res
handleErrors()
jsonError(req, res, err)
Request object.
Request
Response object.
Response
Error Error object.
Error
The incoming res object is modified.
Request, Response, Error