200 OK
HTTP 200 OK
成功狀態碼表明請求成功。200 回應預設上是緩存的(cacheable)。
所謂「成功」的定義,取決於 HTTP 的請求方法:
GET
:資源已取得,並傳送到訊息內文(message body)。- HEAD (en-US):整個標已經放在訊息內文了。
POST
: 描述動作結果的資源已經傳送到訊息內文。- TRACE (en-US):訊息內文包含了請求訊息,伺服器也接受了請求。
PUT (en-US) 或 DELETE (en-US) 的成功訊息,通常不是 200 OK
,而是 204
No Content
(或著在資源首次上傳時,201
Created
)。
狀態
200 OK
規範
規範 | 標題 |
---|---|
RFC 7231, section 6.3.1: 200 OK | 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.