I have the following code in Node (just for testing purposes of error handling):
exports.getData = async (req, res, next) => { res.status(401).json({message: