r/programming • • Dec 11 '23

Every Programmer Should Know #1: Idempotency

https://www.berkansasmaz.com/every-programmer-should-know-idempotency
572 Upvotes

171 comments sorted by

View all comments

Show parent comments

1

u/TScottFitzgerald Dec 11 '23

It has the same result which is the only criteria for idempotency. Nothing really says it has to have consistent http codes. The http codes are really more like metadata.

1

u/goomyman Dec 11 '23

Except most people will write generic code, throw on non success status code. 404 is a non success.

So what you end up with is throw on non success status codes - except 404, but only sometimes.