res.status(code)
Sets the HTTP status for the response. It is a chainable alias of Node’s response.statusCode.
1 2 3 | res.status(403).end(); res.status(400).send( 'Bad Request' ); res.status(404).sendFile( '/absolute/path/to/404.png' ); |
res.status(code)
Sets the HTTP status for the response. It is a chainable alias of Node’s response.statusCode.
1 2 3 | res.status(403).end(); res.status(400).send( 'Bad Request' ); res.status(404).sendFile( '/absolute/path/to/404.png' ); |
Designed by : w10schools
service@w10schools.com
Please login to continue.