how to send response in express js
(req, res) => res.send('Hello World!')
//Use end() to send an empty response
res.end()
res.status(404).end()// for not found pages
//use either
//res.status(404).send('File not found') === res.sendStatus(404)
how to send response in express js
(req, res) => res.send('Hello World!')
//Use end() to send an empty response
res.end()
res.status(404).end()// for not found pages
//use either
//res.status(404).send('File not found') === res.sendStatus(404)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us