itips diary

itips diary

日々の振り返り

よく知られているHTTPレスポンスコードは氷山の一角

HTTPレスポンスステータスコードといえば、

Code Description
200 OK
301 Moved Permanently
302 Found
304 Not Modified
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout

ここら辺をよく見るけれど、でも実際は
HTTP response status codes - HTTP | MDN
RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1
RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
さらに沢山あり無知の知であった。
中には、

418 I'm a teapot
サーバーは、ティーポットでコーヒーを淹れようとする試みを拒否します。

おそらく遊び心で作ったようなものもある。