Live data from Hacker News

418 I’m a teapot

developer.mozilla.org

91–100 of 146 posts

Re: 418 I’m a teapot

#92

Earlier quoted context omitted.

We just had a work party and they invited the whole staff. I was outraged they didn't do a proper controlled A/B test. Management will never know if having fun together was a good use of their money. Idiots.

The problem was people (including management) wanting to talk about where and how to put emojis once we added a few. The less I have to talk to management the better. All those small discussions were essentially pointless and they happened often enough that I was getting annoyed by them. Like, sometimes we would be showing "in development" stuff to clients and then they would interrupt and mention something like "nic…

> All those small discussions were essentially pointless

Were they pointless, or were they positive feedback about a thing you personally disliked?

Re: 418 I’m a teapot

#93
I use 418 as a reply to illegitimate bots. It’s fun and it makes filtering logs easier.

Nginx config snippet:

  # Nothing to hack around here, I’m just a teapot:
  location ~* \.(?:php|aspx?|jsp|dll|sql|bak)$ { 
      return 418; 
  }
  error_page 418 /418.html;
Example: https://FreeSolitaire.win/wp-login.php (NB: /wp-login.php is WordPress login URL, and it’s commonly blindly requested by bots searching for weak WordPress installs.)

Re: 418 I’m a teapot

#94
We use the 418 response code in our authentication service. We use to determine whether the token is invalid due to expiration, vs any other reason. If 418, we know to refresh to access token automatically... pretty harmless and definitely not a security measure.

Re: 418 I’m a teapot

#95

This was the nerdy non sequitur joke before "sir, this is a wendy's" went platinum on facebook memes in the 2010s.

I mean there were a million, including the game, which everyone was freed of by xkcd.

Dangit, I had finally gotten good at The Game.

Re: 418 I’m a teapot

#96

We use the 418 response code in our authentication service. We use to determine whether the token is invalid due to expiration, vs any other reason. If 418, we know to refresh to access token automatically... pretty harmless and definitely not a security measure.

[deleted]

Re: 418 I’m a teapot

#97

I use 418 as a reply to illegitimate bots. It’s fun and it makes filtering logs easier. Nginx config snippet: # Nothing to hack around here, I’m just a teapot: location ~* \.(?:php|aspx?|jsp|dll|sql|bak)$ { return 418; } error_page 418 /418.html; Example: https://FreeSolitaire.win/wp-login.php (NB: /wp-login.php is WordPress login URL, and it’s commonly blindly requested by bots searching for weak WordPress installs.…

Quick side-note. Thank you for freesolitaire.win. It's such a beautiful implementation of solitaire. Works so well as a PWA, I can enjoy it even without proper internet connection, it's simple, does the basics, but does it perfectly. There's nothing to add to it, but more importantly... nothing to take out. I wish more software was written like this.

I've donated already, but I use it so much I'll donate again.

Re: 418 I’m a teapot

#98
post #74

The RFC covers mostly coffee brewing related activities. I've always wondered if you were to have an actual networked Teapot, when would it be appropriate to send 418. I am sure there are some networked teapots already. If someone wanted to send a "brew tea" request (via POST?) to an actual teapot, then 418 would not be suitable, you'd want something else, no?

I think making a networked teapot with an undocumented endpoint for "brew coffee" that returned 418 would be fun :)

Re: 418 I’m a teapot

#99
There's this website called tcrf.net discussing hidden gems in old games and I feel like in the past, at least in some companies, engineering was fun. I really cannot picture creating anything like 418 in my current workplace.
Post reply on HN