Extract error message from non 2xx response in React

后端 未结 0 1941
自闭症患者
自闭症患者 2021-02-02 08:28

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:         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题