/
835.txt
55 lines (34 loc) · 2.45 KB
/
835.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
43
44
45
46
47
48
49
50
51
52
53
54
55
* 仕様書
[REFS[
- [2] [CITE@en[RFC 7234 - Hypertext Transfer Protocol (HTTP/1.1): Caching]] ([TIME[2014-09-11 10:19:59 +09:00]] 版) <https://tools.ietf.org/html/rfc7234#section-5.2.1.7>
- [4] [CITE@en[RFC 7234 - Hypertext Transfer Protocol (HTTP/1.1): Caching]] ([TIME[2014-09-11 10:19:59 +09:00]] 版) <https://tools.ietf.org/html/rfc7234#section-5.2.2.1>
]REFS]
* 文脈
[3] [[要求]]に [CODE(HTTP)@en[[[Cache-Control:]] [[only-if-cached]]]] が指定されていて[[キャッシュ]]が[[蓄積された応答]]を持たない場合に、
[CODE(HTTP)[[[504]]]] [[応答]]を使うこととなっています [SRC[>>2]]。
[5] [[蓄積された応答]]に [CODE(HTTP)@en[[[Cache-Control:]] [[must-revalidate]]]] や
[CODE(HTTP)@en[[[Cache-Control:]] [[proxy-revalidate]]]]
が指定されていて[[検証]]できなかった場合に、
[CODE(HTTP)[[[504]]]] [[応答]]を使うこととなっています [SRC[>>4]]。
* From specifications
** RFC 2068・RFC 2616 (HTTP/1.1) 10.5.5 504 Gateway Timeout
> The server, while acting as a gateway or proxy, did not receive a
timely response from the upstream server [DEL[it accessed]] [INS[specified by the URI (e.g. HTTP, FTP, LDAP) or some other auxiliary server (e.g. DNS) it needed to access]]
in attempting to complete the request.
関門又は串として動作しているサーバーは、要求を完了させようとする過程で[DEL[接続した]][INS[接続する必要のあった、 URI により指定された (例えば [[HTTP]], [[FTP]], [[LDAP]] の) 又は他の補助的な (例えば DNS の)]]
上流サーバーから適時応答を受信することができませんでした。
[INS[
> Note: Note to implementors: some deployed proxies are known to
return 400 or 500 when DNS lookups time out.
注意 : 実装者への注意 : 実際に使われている串の中には、 [[DNS]]
索きの時間切れの時に [CODE(HTTP)[[[400]]]] 又は [CODE(HTTP)[[[500]]]]
を返すものがあることが分かっています。
]INS]
** RFC の部分の License
[[RFCのライセンス]]
* メモ
[1] この[[状態符号]]は、 [[RFC1945]] では規定されていませんでしたから、
[[HTTP/1.0]] の実装や古い [[HTTP/1.1]] の実装は知らないかもしれません。
[501] [CITE@en[RFC 7252 - The Constrained Application Protocol (CoAP)]]
( ([TIME[2014-06-27 00:59:37 +09:00]] 版))
<http://tools.ietf.org/html/rfc7252#section-5.9.3.5>