当用户没有权限时,我的服务器返回 403:
HTTP/1.1 403 Forbidden
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 41
Content-Type: text/plain; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Fri, 04 Oct 2013 03:44:47 GMT
You do not have the necessary permission.
我从微风中得到以下错误:
“未捕获的语法错误:意外的令牌 Y”
从这里:
function extractErrors(XHR) {
if (!XHR.responseText) return null;
var responseObj = JSON.parse(XHR.responseText);
return responseObj && responseObj.EntityErrors;
}
这是一个错误吗?