Hacker News new | ask | show | jobs
by madamelic 1740 days ago
If I have anything to do with it, there is a 418 response hidden somewhere.

I recall a few internal projects at a previous employer would return 418 if the user managed to royally mess something up as a "wtf, how are you here?!" kind of response.

I feel like I am not alone in implementing 'weird' HTTP codes when I get bored / as an easter egg. Pretty sure I also used HTTP 420 at least once.

3 comments

Unlike 418 I'm a Teapot, 420 Enhance Your Calm is actually a nonstandard HTTP status code. The correct response is 429 Too Many Requests. [1]

[1]: https://datatracker.ietf.org/doc/html/rfc6585#section-4

Ah, the good ol' 420 - EnhanceYourCalm
“Uhh ummm no” -code reviewer
Yeah, code reviews definitely killed some of the fun in coding, they are rarely performed with humor.
I generally make it a goal to have a test case with silly enough data to get a comment from a reviewer.
I remember reviewing a really long document (> 50 pages) that had in one bullet list the phrase 'Marks and Spencer tandoori chicken sandwich'. The doc was otherwise camera ready and the phrase was obviously there to see if I was in fact reading it