lenqnr
06/28/2019, 5:52 AMpost("/something") {
...
if (somethingWentWrong) {
// respond http status and return@post maybe?
}
...
}
Is there something like return res.sendStatus(500) or return next(err) in Node.js Express framework? I can't find any documents or samples about it.