- 状态
- 规范
- 浏览器兼容性
- Legend
- 参见
- 文档标签和贡献者
在HTTP协议中,201 Created
是一个代表成功的应答状态码,表示请求已经被成功处理,并且创建了新的资源。新的资源在应答返回之前已经被创建。同时新增的资源会在应答消息体中返回,其地址或者是原始请求的路径,或者是 Location
首部的值。
这个状态码的常规使用场景是作为 POST
请求的返回值。
状态
- 201 Created
规范
Specification | Title |
---|---|
RFC 7231, section 6.3.2: 201 Created | Hypertext 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
Desktop | Mobile | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | Safari on iOS | Samsung Internet | |
201 | ChromeFull support Yes | EdgeFull support Yes | FirefoxFull support Yes | IEFull support Yes | OperaFull support Yes | SafariFull support Yes | WebView AndroidFull support Yes | Chrome AndroidFull support Yes | Edge MobileFull support Yes | Firefox AndroidFull support Yes | Opera AndroidFull support Yes | Safari iOSFull support Yes | Samsung Internet AndroidFull support Yes |
Legend
- Full support
- Full support
参见
- HTTP request methods
文档标签和贡献者
此页面的贡献者:mdnwebdocs-bot, Dante_Zzzz, WayneCui
最后编辑者:mdnwebdocs-bot,