-
Notifications
You must be signed in to change notification settings - Fork 4
/
136.txt
42 lines (32 loc) · 2.21 KB
/
136.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[1] [[HTTP]], [[RTSP]], [[SIP]] で使われる[[状態符号]]
[DFN[[CODE(HTTP)[200]]]] ([RUBYB[了解] [OK]])
は、[[要求]]が成功したことを表します。
* 仕様書
[REFS[
- [412] [CITE@en[RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content]] ([TIME[2014-06-07 01:55:45 +09:00]] 版) <https://tools.ietf.org/html/rfc7231#section-4.3.3>
]REFS]
* 文脈
[419] [[起源鯖]]は、 [CODE(HTTP)@en[[[POST]]]] への[[応答]]を[[キャッシュ]]させて以後の
[CODE(HTTP)@en[[[GET]]]] の処理で再利用できるようにしたい時は、
[CODE(HTTP)[[[200]]]] [[応答]]を送り、その [CODE(HTTP)@en[[[Content-Location:]]]]
[[ヘッダー]]に[[実効要求URL]]と同じ値を設定することができます [SRC[>>412]]。
* 歴史
[FIG(quote)[
[FIGCAPTION[
[420] RFC 1945 (HTTP/1.0); RFC 2068・2616 (HTTP/1.1) 10.2.1 200 OK
]FIGCAPTION]
> The request has succeeded. The information returned with the response is dependent on the method used in the request, [DEL[as follows]] [INS[for example]]:
:[CODE(HTTP)[[[GET]]]]:an entity corresponding to the requested resource is sent in the response;
:[CODE(HTTP)[[[HEAD]]]]:the [DEL[response must only contain the header information and no Entity-Body]] [INS[entity-header fields corresponding to the requested resource are sent in the response without any message-body]];
:[CODE(HTTP)[[[POST]]]]:an entity describing or containing the result of the action[DEL[.]][INS[;]]
:[INS[[CODE(HTTP)[[[TRACE]]]]]]:[INS[an entity containing the request message as received by the end server.]]
要求は成功しました。応答と共に返される情報は要求で使われた method
に依存します。例えば、
:[CODE(HTTP)[GET]]:要求された資源に対応する実体が応答で送られます
:[CODE(HTTP)[HEAD]]:要求された資源に対応する実体頭欄が [CODE(ABNF)[[[message-body]]]] 抜きで応答で送られます
:[CODE(HTTP)[POST]]:動作の結果を説明する又はそれを含む実体
:[CODE(HTTP)[TRACE]]:末端サーバーが受信した通りの要求メッセージを含む実体
[INS[
編集者注: 削除部は [[RFC 1945]], 挿入部は [[RFC 2068]]・[[RFC 2616]]。
]INS]
]FIG]