418 I'm a teapot는 1998년 만우절 농담으로 정의된 상태 코드입니다(RFC 2324, Hyper Text Coffee Pot Control Protocol). '커피를 내려달라'는 요청을 받은 주전자(teapot)가 '나는 주전자라 커피를 못 만든다'며 거절하는 상황을 표현합니다.
실무용 코드는 아니지만, 많은 프레임워크와 사이트가 이스터에그로 실제 구현해 두었습니다. 재미로 쓰거나 봇·스크래퍼를 향한 장난스러운 거부 응답으로 종종 등장합니다.
BREW /coffee HTTP/1.1
Host: teapot.example.com
Content-Type: application/coffee-pot-command
startHTTP/1.1 418 I'm a teapot
Content-Type: text/plain
I'm a teapot. I cannot brew coffee.app.get('/coffee', (req, res) => {
res.status(418).send("I'm a teapot");
});curl -i https://teapot.example.com/coffee
# HTTP/1.1 418 I'm a teapot