Use res.sendStatus(statuscode) instead of res.json() for some equivalent status
res.sendStatus(200); // equivalent to res.status(200).send('OK')
res.sendStatus(403); // equivalent to res.status(403).send('Forbidden')
res.sendStatus(404); // equivalent to res.status(404).send('Not Found')
res.sendStatus(500); // equivalent to res.status(500).send('Internal Server Error')
Download
0 formats
No download links available.
JWT Authentication Introduction sinhala tutorial part 1 | NatokHD