更新时间:2023-02-16 09:04:56
如果您使用的RC,这种情况已经改变。尝试:
If you're using the RC, this has changed. Try:
throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.Unauthorized));
HTT presponseException不接受的HTTPStatus code