What is the best way to handle custom error cases using AJAX?

后端 未结 0 909
执笔经年
执笔经年 2021-01-20 19:53

When returning responses to an AJAX request, I am returning errors such as the following:

res.status(403).send("Member not found");

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