--- title: 201 Created slug: Web/HTTP/Status/201 translation_of: Web/HTTP/Status/201 ---
HTTP 201 Created
成功狀態碼表示請求成功且有一個新的資源已經依據需要而被建立。實際上,在此回應傳送前,新資源就已被建立,且其內容在訊息的主體中傳回,其位置為請求的 URL 或是 {{HTTPHeader("Location")}} 標頭的內容。
此狀態碼通常用於 {{HTTPMethod("POST")}} 請求的回應中。
201 Created
Specification | Title |
---|---|
{{RFC("7231", "201 Created" , "6.3.2")}} | 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.
{{Compat("http.status.201")}}