HTTP 201 Created
成功狀態碼表示請求成功且有一個新的資源已經依據需要而被建立。實際上,在此回應傳送前,新資源就已被建立,且其內容在訊息的主體中傳回,其位置為請求的 URL 或是 Location
標頭的內容。
此狀態碼通常用於 POST
請求的回應中。
狀態
201 Created
規範
Specification | Title |
---|---|
RFC 7231, section 6.3.2: 201 Created | Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |
瀏覽器相容性
BCD tables only load in the browser
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.