阅读背景:

如何在WebAPI中返回404和403的json?

来源:互联网 

I have a fairly simple web API application that currently has one route setup. If the user attempts to access any other route they get a 404 back but the body of the 404 is HTML instead of JSON (which is what their accept header asks for). What is the I have a fairly simple web API application that




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

分享到: