状态码 403 Forbidden 代表客户端错误,指的是服务器端有能力处理该请求,但是拒绝授权访问。

这个状态类似于 401,但是进入该状态后,不能再继续进行验证。该访问是永久禁止的,并且与应用逻辑密切相关(例如不正确的密码)。

状态

  1. 403 Forbidden

响应示例

  1. HTTP/1.1 403 Forbidden
  2. Date: Wed, 21 Oct 2015 07:28:00 GMT

规范

SpecificationTitle
RFC 7231, section 6.5.3: 403 ForbiddenHTTP/1.1: Semantics and Content

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

Update compatibility data on GitHub

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
403ChromeFull support YesEdgeFull support YesFirefoxFull support YesIEFull support YesOperaFull support YesSafariFull support YesWebView AndroidFull support YesChrome AndroidFull support YesEdge MobileFull support YesFirefox AndroidFull support YesOpera AndroidFull support YesSafari iOSFull support YesSamsung Internet AndroidFull support Yes

Legend

  • Full support
  • Full support

相关内容

文档标签和贡献者

标签:

此页面的贡献者:mdnwebdocs-bot, WayneCui

最后编辑者:mdnwebdocs-bot,