RFC 2324
HTCPCP/1.0
Larry Masinter, 1 April 1998. The BREW and WHEN methods, the Accept-Additions header, and 418 I'm a teapot.
Read it, annotatedAn April Fools' protocol from 1998 for controlling coffee pots over HTTP, and its 2014 extension for tea. Both run, more faithfully than anyone asked for, on a real teapot and a real coffee pot at http418.nl.
RFC 2324
Larry Masinter, 1 April 1998. The BREW and WHEN methods, the Accept-Additions header, and 418 I'm a teapot.
Read it, annotatedRFC 7168
Imran Nazar, 1 April 2014. Tea varieties, sugar, 300 Multiple Choices, and the media type message/teapot.
Read it, annotatedBoth pots answer real HTTP. A teapot, asked for coffee:
curl -I https://http418.nl/coffee
HTTP/2 418
A coffee pot, asked properly:
curl -X BREW -H "Accept-Additions: Whole-milk" coffee.http418.nl
Or build a request step by step in the playground. Every method, header and response is on the BREW page.
How much of the two RFCs the pots implement. The gaps are honest, and on the to-do list.
| Feature | Section | Teapot | Coffee pot |
|---|---|---|---|
| BREW method, POST as an equivalent | 2324 §2.1.1 | Yes | Yes |
| GET | 2324 §2.1.2 | Yes | Yes |
| PROPFIND | 2324 §2.1.3 | 405, by design | 207 |
| WHEN | 2324 §2.1.4 | No milk, no WHEN | Yes |
| Safe response header | 2324 §2.2.1.1 | No | No |
| Accept-Additions, 406 with the list | 2324 §2.2.2.1 | Yes | Yes |
| No decaf | 2324 §2.2.3 | Not applicable | 406 |
| 418 I'm a teapot | 2324 §2.3.2 | Yes | It's a coffee pot |
| coffee: URI schemes in 28 languages | 2324 §3 | Not applicable | As paths |
| Pot designators, pot-0 and pot-1 | 2324 §3 | One pot | Yes |
| message/coffeepot only | 2324 §4 | Not applicable | 415 otherwise |
| Clock synchronised with NTP | 2324 §5.1 | Yes | Yes |
| BREW to "/" gives 300 and Alternates | 7168 §2.1.1 | In the playground | Not applicable |
| Variety URIs, stop at lesser strength | 7168 §2.1.2 | Yes | Not applicable |
| Sugar, xylitol and stevia | 7168 §2.2.1 | No | Not applicable |
| 403 for additions against consensus | 7168 §2.3.2 | No | Not applicable |
| 418 or 503 for coffee | 7168 §2.3.3 | 418 | 503 on pot-1 |
| message/teapot | 7168 §3 | Yes | Not applicable |
application/coffee-pot-command, section 4 says message/coffeepot. A verified erratum, EID 682, sides with section 4.addition-range that is never defined, and defines an addition-type that is never used.caf%C3%E8 is not valid UTF-8, and the Czech k%C3%A1va is missing its closing quote.The full story, and answers to the questions people ask about 418.
418 in Node.js, Go, Python, .NET, Spring, Rust and on the web