res.status(code) Sets the HTTP status for the response. It is a chainable alias of Node’s
res.vary(field) Adds the field to the Vary response header, if it is not there already.
res.jsonp([body]) Sends a JSON response with JSONP support. This method is identical to res.json(), except that it opts-in to JSONP
res.locals An object that contains response local variables scoped to the request, and therefore available only to the view(s) rendered during
res.sendStatus(statusCode) Sets the response HTTP status code to statusCode and send its string representation as the response
res.clearCookie(name [, options]) Clears the cookie specified by name. For details about the options object, see
res.attachment([filename]) Sets the HTTP response Content-Disposition header field to “attachment”. If a filename
res.sendFile(path [, options] [, fn]) res.sendFile() is supported by Express v4.8.0 onwards
res.download(path [, filename] [, fn]) Transfers the file at path as an “attachment”. Typically, browsers will prompt the user
res.send([body]) Sends the HTTP response. The body parameter can be a Buffer object
Page 2 of 3