• 状态
  • 规范
  • 浏览器兼容性
    • Legend
  • 参见
  • 文档标签和贡献者

    在HTTP协议中,201 Created 是一个代表成功的应答状态码,表示请求已经被成功处理,并且创建了新的资源。新的资源在应答返回之前已经被创建。同时新增的资源会在应答消息体中返回,其地址或者是原始请求的路径,或者是 Location 首部的值。

    这个状态码的常规使用场景是作为 POST 请求的返回值。

    状态

    1. 201 Created

    规范

    SpecificationTitle
    RFC 7231, section 6.3.2: 201 CreatedHypertext Transfer Protocol (HTTP/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
    201ChromeFull 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

    参见

    • HTTP request methods

    文档标签和贡献者

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

    最后编辑者:mdnwebdocs-bot,