Send an envelope as JSON: res.status(status).json(envelope).
res.status(status).json(envelope)
The Express response.
An Envelope or any JSON-serializable value.
HTTP status. Default 200.
Whatever res.json returns.
res.json
Send an envelope as JSON:
res.status(status).json(envelope).