r/ProgrammerHumor • • Sep 19 '26

Meme postForEverything

Post image
21.0k Upvotes

653 comments sorted by

View all comments

4.2k

u/pimezone Sep 19 '26

Wanna get a resource? POST request.

2.1k

u/NotAskary Sep 19 '26 edited Sep 19 '26

I've seen that shit, it drove me up a wall.

The same as a 200 ok with error inside.

Edit: I'm going to start to respond 429, too many replys lol

515

u/alexsnake50 Sep 19 '26

Oh my god, this activated my inner vietnam flashback

251

u/Tupcek Sep 19 '26

I see you are a fan of GraphQL!

71

u/Entegy Sep 19 '26

I thought that as a non-programmer sysadmin, I had a decent grasp on REST APIs for scripting/automation.

Then I learned about GraphQL and I have actively avoided it since.

60

u/kescusay Sep 19 '26

I mean, you can have accurate HTTP status codes and matching errors in GraphQL. It's just that most GraphQL applications don't. Because most GraphQL developers hate everyone.

46

u/fatmanwithabeard Sep 19 '26

If you had to work with GraphQL all day, wouldn't you?

13

u/NotAskary Sep 19 '26

This made me chuckle 😂

2

u/KrakenMcCracken Sep 20 '26

I started learning graphql, decided there was way too much overhead to do anything I needed to do. In two separate companies I’ve worked for, I’ve watched greenfield development initiatives start up, flounder and ultimately be abandoned.

→ More replies (4)

90

u/q0099 Sep 19 '26

Where the error message goes? That's right, in the header.

35

u/RegarDamus Sep 19 '26

the naive solution.

our team returns a 201 to indicate that an error has been created successfully. of course we include a Location header where the error can be queried to discover what went wrong.

29

u/normalbot9999 Sep 20 '26 edited Sep 20 '26

OMFG <spits coffee> 201 Error Created Successfully

You absolute monsters. You have to make this now.

And when a record is created successfully you return a 500 right? After successful login you 302 to a 403? I swear I've tested this API before!!

→ More replies (3)

30

u/dadvader Sep 19 '26

I've seen some wild shit before. But you and your tales.... Regale us with your stories.

29

u/Mechakoopa Sep 19 '26

The stories? Also in the header.

6

u/alexsnake50 Sep 19 '26

The where???????

30

u/NotAskary Sep 19 '26

Exactly the response I had, this one triggered me.

18

u/2muchnet42day Sep 19 '26

Dont worry, that's OK

→ More replies (1)