HTTP状态码401和403区别

您所在的位置:网站首页 403和405 HTTP状态码401和403区别

HTTP状态码401和403区别

#HTTP状态码401和403区别| 来源: 网络整理| 查看: 265

HTTP状态码401和403区别 背景:

有人问401和403的区别,发现自己一知半解,记录备用

英文解释 状态码英文解释401 - UnauthorizedIndicates that authentication is required and was either not provided or has failed. If the request already included authorization credentials, then the 401 status code indicates that those credentials were not accepted.403 - ForbiddenIndicates that though the request was valid, the server refuses to respond to it. Unlike the 401 status code, providing authentication will not change the outcome. 中文解释 状态码中文解释401 - 未经过认证指示身份验证是必需的,没有提供身份验证或身份验证失败。 如果请求已经包含授权凭据,那么401状态码表示不接受这些凭据。403 - 被禁止指示尽管请求有效,但服务器拒绝响应它。 与401状态码不同,提供身份验证不会改变结果。 参考链接及引申阅读 维基百科解释 状态码决策表


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3