Try returning the response as : actionContext.Response = new HttpResponseMessage((HttpStatusCode)401) { ReasonPhrase = "Unauthorized user" }.
確定! 回上一頁