res.status() vs. res.statusCode
expressjs - Response
the
res
object is an enhanced version of Node’s own response object and supports all built-in fields and methods.
res.status(code)
Sets the HTTP status for the response. It is a chainable alias of Node’s response.statusCode.
So the result is the same. expressjs just added a chainable version of statusCode
.