Hacker News new | ask | show | jobs
by thenoblesunfish 1844 days ago
I hadn’t heard of code 418 before - seems like it started as a joke but is now “real” because people use it!
3 comments

It has a proper RFC and everything [1].

All the April Fools RFCs are worth a read imho [2]. RFC2100 (The Naming of Hosts) and RFC8135 (Complex Addressing in IPv6) are real gems.

1: https://datatracker.ietf.org/doc/html/rfc2324

2: https://en.wikipedia.org/wiki/April_Fools%27_Day_Request_for...

Related thread: https://news.ycombinator.com/item?id=24206899

I myself use 418 as a reply to mean bots. Fun + 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
I had a really painful experience with NPM where it was responding 418 and almost no extra info. I had not asked it for a NuGet package.