News for hackers. Stuff that matters.
Re:Error 418 – I'm a Teapot by easton on Wednesday December 02, 2020 @07:24PM (#25283694)
Google has a fun version of this: https://google.com/teapot
Re:Error 418 – I'm a Teapot by Waterluvian on Wednesday December 02, 2020 @07:10PM (#25283587)
I tried using overstock.com yesterday and after visiting four or five pages all subsequent requests returned a blank page with a 418 error. Even on a different computer. Same thing. Even when I tried a different internet source.

I assume it was some server session error because my friends weren't having the issue.

But the 418 was a useless error code to report.

Re:Error 418 – I'm a Teapot by lmm on Wednesday December 02, 2020 @08:32PM (#25284184)
All the HTTP error codes are like that. There are hundreds of them, but they're not specific enough to actually tell you what went wrong without site-specific information.
Re:Error 418 – I'm a Teapot by paledot on Wednesday December 02, 2020 @08:43PM (#25284250)
Which is why REST APIs should just accept that the only two error codes that matter are 400 Your Fault and 500 My Fault. Too much ambiguity when you try to shoehorn meaning into responses like 401 and 404.
Re:Error 418 – I'm a Teapot by spc476 on Wednesday December 02, 2020 @08:32PM (#25284185)
I have a gopher server [1] that kept getting requests from some webbot. So I extended the gopher server to respond to any HTTP style request with "418 I'm a teapot". Sure enough, the webbot stopped making requests shortly thereafter.

[1] gopher://gopher.conman.org/

Re:Error 418 – I'm a Teapot by qwaxys on Friday December 04, 2020 @11:32AM (#25304241)
But what if it IS an actual IoT teapot? https://templates.blakadder.com/proficook_PC-WKS_1167.html
Re:Error 418 – I'm a Teapot by hbcondo714 on Wednesday December 02, 2020 @06:50PM (#25283437)
Lots of http 418 discussions here already:

https://hn.algolia.com/?q=418

Re:Error 418 – I'm a Teapot by infradig on Wednesday December 02, 2020 @07:14PM (#25283625)
But it's not an error. It really is a teapot.
Re:Error 418 – I'm a Teapot by easton on Wednesday December 02, 2020 @07:23PM (#25283686)
It is an error as error 418 is returned if you attempt to communicate with a teapot over the "Hyper Text Coffee Pot Control Protocol", which, as the name implies, is only to be used to talk to coffee pots[0]. The protocol was extended in 2014 for teapot compatibility[1].

0: https://tools.ietf.org/html/rfc2324

1: https://tools.ietf.org/html/rfc7168

Re:Error 418 – I'm a Teapot by DoctorOW on Wednesday December 02, 2020 @07:19PM (#25283663)
Exactly. Making it invalid for brewing coffee. The error is specifically for rejecting a BREW request sent to a teapot.
Re:Error 418 – I'm a Teapot by dylan604 on Wednesday December 02, 2020 @08:01PM (#25283960)
Hmmm, I thought I brewed tea all of the time. Should I be sending a STEEP command instead? I haven't read the docs on how to properly make a cup of tea.
Re:Error 418 – I'm a Teapot by soneil on Wednesday December 02, 2020 @09:58PM (#25284770)
Might Sir be interested in ISO3103?

( https://en.wikipedia.org/wiki/ISO_3103 )

Re:Error 418 – I'm a Teapot by dylan604 on Thursday December 03, 2020 @12:00PM (#25291111)
Why yes. Very much so indeed. I don't know why (actually I do), but I read that in the voice of Stephen Fry.
Re:Error 418 – I'm a Teapot by whbrown on Wednesday December 02, 2020 @07:27PM (#25283727)
400s are user errors ;)