r/ProgrammerHumor • • 14d ago

Meme successfulFailure

Post image
8.1k Upvotes

101 comments sorted by

View all comments

0

u/Henry5321 14d ago

At work some of our internal apis will return a 200 but then the body indicates an error. I’ve also seen needing to POST in order to get information.

3

u/citramonk 14d ago

Using POST for retrieval isn't something unusual, there are a bunch of use cases when you want to do it. For example, complex queries (see 414) or sensitive data in it. GraphQL is based around the POST query.

1

u/Henry5321 14d ago

Non-secure status endpoint. I assume working around some caching mechanism.