41
leanrob
6y

Alright, this is a new one to me, and wow am I blown away.

Working on upgrading an API that I did not build. Getting things running well enough and then an endpoint (which runs well enough in the tests) returns a `418 I'm a teapot`

Yeah, you read that right "I'm a (motherfucking) teapot"

The description is that...

"refuses to make coffee because it is a teapot"

It was an April fools joke in the beginning.

I couldn't return that error if I tried!

This shit is bizarre.

For your reading pleasure:
https://developer.mozilla.org/en-US...

Comments
  • 11
    Yeah, there’s even a full RFC for it. I always include it somewhere in my APIs as an easter egg
  • 2
    I noticed a lot of security plugins in WordPress return that error after too many login attempts.
  • 0
    "I couldn't return that error if I tried"... So I assume it is not the same API you're working on that's returning it? ;P
Add Comment