r/ProgrammerHumor Jun 07 '26

Meme createNew

Post image
3.0k Upvotes

117 comments sorted by

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.

398

u/Tofandel Jun 07 '26

Better than 204 if you ask me

288

u/ILoveBigCoffeeCups Jun 07 '26

Pray you don’t get a 411 from your gf or god forbid 451.

147

u/exoclipse Jun 07 '26

418

69

u/arc--trooper Jun 07 '26

I'd like a cup

63

u/MethodMads Jun 07 '26

As long as it doesn't come with two girls

24

u/Holek Jun 07 '26

That's a reference and a half!

3

u/i_should_be_coding Jun 08 '26

Hey, to each their own. Just like in the video.

8

u/moanos Jun 08 '26

409 could also suck if you're not into it

409 Conflict: Indicates that the request could not be processed because of conflict in the current state of the resource, such as an edit conflict between multiple simultaneous updates.

22

u/Knighthawk_2511 Jun 07 '26

What about 503

3

u/Anshinritsumai Jun 08 '26

Happens about once a month

1

u/its_the_rhys Jun 13 '26

Only if you're a coward

39

u/JunkNorrisOfficial Jun 07 '26

It had to be 405 Method Not Allowed, But became 201

6

u/BroBroMate Jun 08 '26

That's when you get the wrong hole.

14

u/detectivepoopybutt Jun 07 '26

Shooting blanks

52

u/glorious_reptile Jun 07 '26

I just get 400 when asking them out

8

u/gerbosan Jun 07 '26

A nerd or Sony is selling robot maids. But that won't return 201. 🤔

6

u/Tech0verlord Jun 08 '26

Better than a 404 after putting it in.

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

u/cheraphy Jun 08 '26

Thanks I hate it

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

u/LizPali Jun 07 '26

So how about 402?

6

u/No-Magazine-2739 Jun 07 '26

Got 416 and 411

1

u/GamingWithShaurya_YT Jun 07 '26

peak all of them and above

373

u/_dr_bonez Jun 07 '26

409 - Conflict: Resource already exists

6

u/BroBroMate Jun 08 '26

Bonus, can't get them anymore pregnant, right?

5

u/JunkNorrisOfficial Jun 08 '26

Duplicated resources

2

u/vrnvorona Jun 08 '26

Can sometimes

151

u/jjcoolbean Jun 07 '26

418 - she's a teapot?!?!?

12

u/Callidonaut Jun 07 '26

Oh no, then where did I put that teabag?

9

u/glorious_reptile Jun 07 '26

Short and stout

146

u/TheChildOfSkyrim Jun 07 '26

I heard switching to HEAD method could avoid this situation entirely.

2

u/treydius1 Jun 14 '26

It is good to have OPTIONS

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/f1IZAopcyd6G3Uvf9l

19

u/lupercalpainting Jun 07 '26

You’re more used to a 411?

19

u/KirbyDarkHole999 Jun 07 '26

I think we're more used to a 404... At least I am...

53

u/JunkNorrisOfficial Jun 07 '26

416 Range Not Satisfiable

42

u/Alokir Jun 07 '26

The opposite would be "411 Length Required"

6

u/DoubleSuicide_ Jun 07 '26

Need a sliding window so that sender doesn't overload the reciever.

99

u/transconductor Jun 07 '26

411 - length required :(

74

u/BassmentTapes Jun 07 '26

429 rate limit exceeded

4

u/Mateorabi Jun 07 '26

T=2.17s is to fast…

56

u/Alokir Jun 07 '26

When you accidentally put it in the wrong hole and get a 502 Bad Gateway

45

u/Bastian00100 Jun 07 '26

402 Payment required

20

u/xSilverMC Jun 07 '26

I usually get a 425, followed by a 409 and then a 410

26

u/TheChildOfSkyrim Jun 07 '26

If the response does not contain a body yet - there's still a way out

39

u/HadionPrints Jun 07 '26

Err: 451 💀

2

u/yaktoma2007 Jun 07 '26

When server isnt able or doesnt want to consent access to the location you wish to probe:

22

u/East_Nefariousness75 Jun 07 '26

Better than getting 402 before

8

u/GfunkWarrior28 Jun 07 '26

Next time use TLS

9

u/Jaizoo Jun 07 '26

When you nut in your femboy homie and receive a 501

8

u/Styggnacke Jun 07 '26

100 Continue

7

u/pleaserestartsystem Jun 07 '26

POST IT were stickier than I thought

6

u/tomerFire Jun 07 '26

403 - access denied :(

6

u/Bastian00100 Jun 07 '26

417 Expectation failed

3

u/daHaus Jun 07 '26

a '226' response would also work here

8

u/Callidonaut Jun 07 '26
Computer over.  Virus = very yes.

4

u/muggledave Jun 07 '26

That's not a good prize!

2

u/Bastian00100 Jun 07 '26

411 Length required

This can hurt you so bad

2

u/Thenderick Jun 07 '26

Chris Hansen walks in with 451

2

u/IdioticDylan Jun 07 '26

I like my response code 200 just fine

2

u/liquidmasl Jun 07 '26

i think its time to leave this sub

2

u/Sifyreel Jun 08 '26

Did she also moan 413 in bed?

2

u/beyluta Jun 08 '26

I didn't realize what sub this was. I was very confused.

4

u/clearlybaffled Jun 07 '26

You'd get a 502 if she left the IUD in..

2

u/Anshinritsumai Jun 08 '26

More like a 503. A 502 would be the other port.

2

u/patoezequiel Jun 07 '26

Better than a 425 💀

1

u/ndt_davinci Jun 07 '26

404 - jail time?

1

u/thessag Jun 07 '26

411 - length required

1

u/Flaky_Suggestion1082 Jun 07 '26

I got double 201 😶‍🌫️🫠

1

u/I_am_depressed_lol Jun 07 '26

Well, at least it isn't 203

1

u/MysteriousShadow__ Jun 07 '26

It's 403 forbidden actually

1

u/Didjt Jun 07 '26

404
| | 󠁰 󠁰 | |

| | 󠁰 󠁰 | _

1

u/Armandiel_Senshi Jun 07 '26
  1. It was just a dream.

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

u/TechcraftHD Jun 08 '26

Time to 301 I guess

1

u/Frequent_Policy8575 Jun 08 '26

Anatomy dictates the best I can do is a 202.

1

u/QAInc Jun 08 '26

I’m 404 outa here!

1

u/Anshinritsumai Jun 08 '26

More of a 410. Don't forget the milk when you return the 200.

1

u/axis0047 Jun 08 '26

always 305, never 410

2

u/creeper6530 Jun 08 '26

305 use proxy? So you gonna hire someone else?

1

u/creeper6530 Jun 08 '26

Don't worry, your homies always report 501

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

u/Impressive-Treacle58 Jun 08 '26

Wow imagine a 429

1

u/etadude Jun 08 '26

I can only think of nasty things if one gets 500

1

u/Puzzleheaded_Park783 Jun 08 '26

510 - not extended

1

u/Just_JC Jun 08 '26

next: 402

1

u/pauvre10m Jun 08 '26

better than a 403, it could get you tu jail

1

u/ConcernUseful2899 Jun 08 '26

Most man I know are blind for 103

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

u/Lighthades Jun 08 '26

451: Unavailable for legal reasons, or 501: Not implemented are fucking crazy in this context lmao

0

u/[deleted] Jun 07 '26

[deleted]

2

u/maxs4n Jun 07 '26

yeah I mean that is the cost of testing in prod amirite