What Is a 418 Status Code?
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.
This status code is a reference to the Hyper Text Coffee Pot Control Protocol, which was released in 1998 as an April Fools’ joke.
Although this status code started as a joke, websites can technically use it as a response. Some sites use 418s for requests they don’t want to handle, such as automated queries. Use of 418 is rare and is not usually considered best practice.
Reading through the Hyper Text Coffee Pot Control Protocol can be entertaining, however.
- Source: RFC2324 Section 2.3.2
418 CODE REFERENCES
Go HTTP Status Constant
Symfony HTTP Status Constant
418 status code example
Here is an example request and response for a 418 status code:
GET /coffee HTTP/1.1
HTTP/1.1 418 I'm a teapot
Date: Wed, 16 Mar 2023 12:00:00 GMT
<title>I'm a teapot</title>
<h1>I'm a teapot</h1>
<p>This server is a teapot, and it cannot brew coffee.</p>
The 418 status code is a humorous code that indicates the server is a teapot and cannot brew coffee. It is not meant to be used seriously and is not expected to have a real impact on the client or SEO.
Who created the 418 status code?
The 418 status code was created by April King, who was a member of the Internet Engineering Task Force (IETF) at the time. She proposed it as part of an April Fools’ Day joke in 1998.
- Learn about web development
- Learn about SEO
- Web development services from WebFX
- SEO services from WebFX
- MDN Web Docs