阅读背景:

如何捕获Web API 2中的所有异常?

来源:互联网 

I'm writing a RESTful API in Web API and I'm not sure how to handle errors effectively. I want the API to return JSON, and it needs to consist of the exact same format every single time - even on errors. Here are a couple of examples of what a successful and a failed response might look like.I'm writing a RESTful API in Web API and I'm no




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: