aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/http/status/200/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-tw/web/http/status/200/index.html')
-rw-r--r--files/zh-tw/web/http/status/200/index.html50
1 files changed, 50 insertions, 0 deletions
diff --git a/files/zh-tw/web/http/status/200/index.html b/files/zh-tw/web/http/status/200/index.html
new file mode 100644
index 0000000000..f9b94fd6df
--- /dev/null
+++ b/files/zh-tw/web/http/status/200/index.html
@@ -0,0 +1,50 @@
+---
+title: 200 OK
+slug: Web/HTTP/Status/200
+translation_of: Web/HTTP/Status/200
+---
+<div>{{HTTPSidebar}}</div>
+
+<p>HTTP <strong><code>200 OK</code></strong> 成功狀態碼表明請求成功。200 回應預設上是緩存的(cacheable)。</p>
+
+<p>所謂「成功」的定義,取決於 HTTP 的請求方法:</p>
+
+<ul>
+ <li>{{HTTPMethod("GET")}}:資源已取得,並傳送到訊息內文(message body)。</li>
+ <li>{{HTTPMethod("HEAD")}}:整個標已經放在訊息內文了。</li>
+ <li>{{HTTPMethod("POST")}}: 描述動作結果的資源已經傳送到訊息內文。</li>
+ <li>{{HTTPMethod("TRACE")}}:訊息內文包含了請求訊息,伺服器也接受了請求。</li>
+</ul>
+
+<p>{{HTTPMethod("PUT")}} 或 {{HTTPMethod("DELETE")}} 的成功訊息,通常不是 <code>200 OK</code>,而是 {{HTTPStatus("204")}} <code>No Content</code>(或著在資源首次上傳時,{{HTTPStatus("201")}} <code>Created</code>)。</p>
+
+<h2 id="狀態">狀態</h2>
+
+<pre class="syntaxbox">200 OK</pre>
+
+<h2 id="規範">規範</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">規範</th>
+ <th scope="col">標題</th>
+ </tr>
+ <tr>
+ <td>{{RFC("7231", "200 OK" , "6.3.1")}}</td>
+ <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="瀏覽器相容性">瀏覽器相容性</h2>
+
+<p class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</p>
+
+<p>{{Compat("http.status.200")}}</p>
+
+<h2 id="參見">參見</h2>
+
+<ul>
+ <li><a href="/zh-TW/docs/Web/HTTP/Methods">HTTP 請求方法</a></li>
+</ul>