且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HTT presponseException不接受的HTTPStatus code

更新时间:2023-02-16 09:04:56

如果您使用的RC,这种情况已经改变。尝试:

If you're using the RC, this has changed. Try:

throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Unauthorized));