Is 418 “I'm a teapot” really an HTTP response code?

后端 未结 5 1381
遥遥无期
遥遥无期 2020-12-23 02:47

Is 418 \"I\'m a teapot\" really an HTTP response code?

There are various references to this on the internet, including in lists of response codes, but I ca

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 03:02

    HTTP response code 418 was originally defined in RFC 2324 ("Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0)") and RFC 7168 ("The Hyper Text Coffee Pot Control Protocol for Tea Efflux Appliances (HTCPCP-TEA)") protocols.

    Per Wikipedia: List of HTTP status codes: #418

    This code was defined in 1998 as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol, and is not expected to be implemented by actual HTTP servers. The RFC specifies this code should be returned by teapots requested to brew coffee. This HTTP status is used as an Easter egg in some websites, including Google.com.

提交回复
热议问题