How to read API status code if 404 and show message like “No Data Found”

前端 未结 0 1739
不知归路
不知归路 2021-01-21 00:50

How can I read the status code from an API response? If it\'s a 404 I want to show message like "No Data Found".

I have one API and if gives me the wrong combin

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