HTTP 418 I am a teapot とは?
HTTP 418 I am a teapot の解説と、CI/CD やデプロイで見かけたときの意味。
HTTP 418 は、"Hyper Text Coffee Pot Control Protocol" RFC に由来するユーモラスなステータスコードです。
意味するところ
418 は実際の HTTP 向けには意図されていませんが、一部の API やフレームワークは easter egg として、あるいは bot を遊び心で拒否するために返します。
CI/CD で見かけるとき
CI で 418 を見かけることはまずありません。もし見かけたら、API が意図的に使っており、多くの場合サポートされない、またはブロックされたリクエストを示しています。
重要なポイント
- 418 はジョークのステータスコード。
- エイプリルフールの RFC に由来する。
- たまに easter egg として使われる。
関連ガイド
What Is an HTTP Status Code? The Result of Every RequestAn HTTP status code is a number the server returns to report the outcome of a request. Learn what status code…
What Is HTTP? The Protocol Behind Web RequestsHTTP is the request-response protocol that web clients and servers use to exchange data. Learn what HTTP is a…
What Is a REST API? Resource-Oriented Web APIsA REST API exposes resources over HTTP using standard methods and status codes. Learn what REST is and how CI…