Waterluvian 5 years ago

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.

  • lmm 5 years ago

    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.

    • paledot 5 years ago

      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.

spc476 5 years ago

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/

infradig 5 years ago

But it's not an error. It really is a teapot.

  • DoctorOW 5 years ago

    Exactly. Making it invalid for brewing coffee. The error is specifically for rejecting a BREW request sent to a teapot.

    • dylan604 5 years ago

      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.

  • whbrown 5 years ago

    400s are user errors ;)