logoalt Hacker News

throw-the-towel • today at 2:46 PM • 5 replies • view on HN

This is an anti-pattern. A better, future-proof solution would be to extend HTTP 418 with a header stating just what the server is not:

    HTTP 418 I'm A Teapot
    I'm-Not-A: freezer;teapot;radio

Replies

sgarland • today at 2:51 PM

Considering 418 is the positive assertion, suddenly reversing that would break backwards compatibility; additionally, it adds ambiguity by listing multiple entities it is not, leaving the receiver to potentially assume that it is, for example, a microwave.

EDIT: missed the positive part remaining, sorry. I maintain that the ambiguity issue stands.

basilikum • today at 3:14 PM

This is a proposal to add a new HTTP status code. 418 is not a HTTP status code but a HTCPCP status code.

cyanydeez • today at 2:51 PM

needs more dry; just remove the second I'm and it's clearer.

k0morebi • today at 3:19 PM

Should be "I'm a little teapot" short and stout is implied

rzzzt • today at 3:02 PM

421 Misdirected Request works equally well.