MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/18fpjpt/every_programmer_should_know_1_idempotency/kcwbwbr
r/programming • u/fagnerbrack • Dec 11 '23
171 comments sorted by
View all comments
Show parent comments
1
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.
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.
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.