[1] [DFN[[CODE(HTTP)[[[418]]]]]] は、[[鯖]]が[[珈琲ポット]]ではなく[[茶ポット]]であることを示す[[状態符号]]です [SRC[>>2]]。

* 仕様書

[REFS[
- [2] '''[CITE@en[RFC 2324 - Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0)]] ([TIME[2014-10-06 15:21:16 +09:00]] 版) <http://tools.ietf.org/html/rfc2324#section-2.3.2>'''
- [420] [CITE@en[RFC 7168 - The Hyper Text Coffee Pot Control Protocol for Tea Efflux Appliances (HTCPCP-TEA)]]
( ([TIME[2014-04-02 07:55:01 +09:00]] 版))
<http://tools.ietf.org/html/rfc7168#section-2.3.3>
]REFS]

* 文脈

[6] [[鯖]]が[[珈琲]]を淹れることができない時は、 [CODE(HTTP)[[[418]]]]
[[応答]]を返すことができます [SRC[>>2, >>420]]。

;; [7] [CODE(HTTP)[[[503]]]] を返すこともできます [SRC[>>420]]。

* 歴史

[FIG(quote)[
[FIGCAPTION[
[3] RFC 2324 (HTCPCP/1.0) 2.3.2 418 I'm a teapot
]FIGCAPTION]

>Any attempt to brew coffee with a teapot should result in the error
code "418 I'm a teapot". The resulting entity body MAY be short and
stout.

茶ポットで珈琲を沸かそうとしたら、
その時は必ず誤り符号 [CODE(HTTP)[418 I'm a teapot]]
(私は茶ポット。) になるべきです。
結果の実体本体は肥満短身なもので'''構いません'''。
]FIG]

[REFS[
- [5] [CITE@en-US[Short and Stout Tea | Tea House & Team Room Albany, NY]] ([TIME[2014-11-14 22:22:29 +09:00]] 版) <http://www.shortandstouttea.com/>
]REFS]

[4] [[IANA登録簿]]にはなぜか登録されていません。未割り当てとなっていますが、
予約されているわけでは無さそうです。 [TIME[2014-11-14T15:44:26.00Z]]


[419] [CITE@en[IfIsEvil]]
( ([TIME[2012-02-09 02:15:53 +09:00]] 版))
<http://wiki.nginx.org/IfIsEvil#What_to_do_instead>

[8] [CITE[HTTP - 418 I'm a teapotなサイト集め - Qiita]]
([TIME[2015-11-13 13:49:16 +09:00]] 版)
<http://qiita.com/narikei/items/13c7285dafa6ecfbac41>

[9] [CITE@en[418 I'm A Teapot · Issue #14644 · nodejs/node]]
([TIME[2019-09-02 16:51:28 +09:00]])
<https://github.com/nodejs/node/issues/14644>

[10] [CITE@en[net/http: remove support for status code 418 I'm a Teapot · Issue #21326 · golang/go]]
([TIME[2019-09-02 16:54:55 +09:00]])
<https://github.com/golang/go/issues/21326>

[11] [CITE@en[draft-nottingham-thanks-larry-00 - Reserving the 418 HTTP Status Code]]
([TIME[2019-08-25 18:50:23 +09:00]])
<https://tools.ietf.org/html/draft-nottingham-thanks-larry-00.html>

[12] [CITE@en[draft-thomson-http-teapot-00 - The Teapot Exists]]
([TIME[2019-08-26 19:51:46 +09:00]])
<https://tools.ietf.org/html/draft-thomson-http-teapot-00>

[14] 
[TIME[西暦2022年][2022]]の[[ロシア連邦のウクライナ侵攻]]後、
[[ロシア連邦]]の[[国防省]]
[[Webサイト]]が
[CODE[418]]
を返す現象が確認されました。
[SRC[>>15]]

[16] [[HTTP/1.1]] でも[[状態符号]]だけで、
[[reason-phrase]]
は[[空文字列]]であるようです。
[SRC[>>13]]

[REFS[
- [15] [TIME[2022-02-26T04:31:19.000Z]] <https://mil.ru/>
]REFS]

[13] [CITE@ja[ゆっくりしないさんはTwitterを使っています 「ロシア国防省のWebサイトが418 I’m a teapotを返してくるという話題で、勘でロシア国内のVPNサーバ使えば正常に返ってくるんじゃね、ということで試した結果、その通りでした。 https://t.co/f1z0hc9rk1」 / Twitter]], [TIME[2022-02-26T04:19:44.000Z]], [TIME[2022-02-26T04:27:48.095Z]] <https://twitter.com/t0de5tr1eb/status/1497133137662742529>

[17] [CITE@ja[ロシア国防省の418 | Torisugariの日記 | スラド]], [TIME[2022-02-28T07:44:43.000Z]] <https://srad.jp/~Torisugari/journal/653025/>

[20] [CITE@en[418 I'm A Teapot · Issue #14644 · nodejs/node]], [TIME[2025-08-18T08:36:38.000Z]] <https://github.com/nodejs/node/issues/14644>


[18] [CITE@en[net/http: remove support for status code 418 I'm a Teapot · Issue #21326 · golang/go]], [TIME[2025-08-18T08:35:12.000Z]] <https://github.com/golang/go/issues/21326>

-[21] 
[CITE@en[Save Error Code 418]], [TIME[2020-01-06T04:21:27.000Z]], [TIME[2025-08-18T08:37:36.346Z]] <https://save418.com/>
-[22] [CITE@en[GitHub - WhataShane/save418: The inner-workings of the Save 418's movement's site.]], [TIME[2025-08-18T08:38:01.000Z]] <https://github.com/WhataShane/save418>


[19] [CITE@en[draft-nottingham-thanks-larry-00]], [TIME[2025-08-18T08:36:21.000Z]] <https://datatracker.ietf.org/doc/html/draft-nottingham-thanks-larry-00>


[23] [CITE@en[draft-thomson-http-teapot-00]], [TIME[2025-08-18T08:38:30.000Z]] <https://datatracker.ietf.org/doc/html/draft-thomson-http-teapot-00>
