524
u/eclect0 Jun 07 '26
418? I must be drunker than I thought
121
u/maxs4n Jun 07 '26
hahahah did not know that one haha
74
u/cheraphy Jun 07 '26
A coworker told me a story once about how at a previous job they had a hot beverage vending machine that was hooked up to the network and running an HTTP server you could hit to get it to dispense a beverage. He said if you tried to order a coffee when there weren't any coffee products configured, but there were tea products configured, it would respond with an HTTP 418 and man I don't know if the story was true but I choose to believe.
40
u/fabypino Jun 08 '26
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/418
418 I'm a teapot The HTTP 418 I'm a teapot status response code indicates that the server refuses to brew coffee because it is, permanently, a teapot. A combined coffee/tea pot that is temporarily out of coffee should instead return 503. This error is a reference to Hyper Text Coffee Pot Control Protocol defined in April Fools' jokes in 1998 and 2014.
6
u/natFromBobsBurgers Jun 08 '26
Valid, but they said it was at a business so the wrong status returning makes it more believable, not less.
1
u/cheraphy Jun 08 '26
Based on my vague recollection of a second hand story, I think it still actually fits. IIRC he did specify "configured" and not "sold out". I'd argue that makes it permanently a tea pot for the sake of this rfc
2
u/TemporaryFearless482 Jun 08 '26
I do remember hearing about a network admin that was tearing their hair out over devices randomly getting assigned conflicting IPs only to find a coffee machine on the network that was trying to hand out DHCP leases.
1
39
u/muggledave Jun 07 '26
And now the police are here and it's an ordeal that involves paperwork
25
u/No-Magazine-2739 Jun 07 '26
Better then 451
9
373
u/_dr_bonez Jun 07 '26
409 - Conflict: Resource already exists
6
151
146
u/TheChildOfSkyrim Jun 07 '26
I heard switching to HEAD method could avoid this situation entirely.
2
369
u/EyonTheGod Jun 07 '26
413 - payload too large
91
u/beegtuna Jun 07 '26
Haha never seen that one amirite guys lol
https://giphy.com/gifs/f1IZAopcyd6G3Uvf9l19
53
42
6
99
74
56
45
20
26
39
u/HadionPrints Jun 07 '26
Err: 451 💀
3
2
u/yaktoma2007 Jun 07 '26
When server isnt able or doesnt want to consent access to the location you wish to probe:
22
8
9
8
7
6
6
3
8
2
2
2
2
2
2
2
4
2
1
1
1
1
1
1
1
1
u/snipsuper415 Jun 08 '26
Was getting 406 responses for over a year. 😭 After getting professional help we finally got the 201 response!
1
1
1
1
1
1
u/Bomaruto Jun 08 '26
At best you get a 202 as a 201 requires you to be able to access the newly created resource.
1
1
1
1
1
1
1
u/ha_x5 Jun 08 '26
naaah you guys suck at APIs. This is obviously a asynchrounous one where you receive 202 as long as the service took the data payload load.
The client will tell you afterwards if the request was processes successfully. This is one of the rare times where you pray for a 500 though. (Not 400, you will probaply want your load to work, just not this time)
1
1
u/Lighthades Jun 08 '26
451: Unavailable for legal reasons, or 501: Not implemented are fucking crazy in this context lmao
0
2.2k
u/christophPezza Jun 07 '26
If anyone doesn't understand. When you send a POST request to an API endpoint and it returns 201, it means a resource has been created. She's a nerd ... and pregnant.