InterviewBuddy
All interview questions

What makes an HTTP operation idempotent?

Intermediate

Answer

Repeating the same operation has the same intended server-side effect as performing it once. Response codes may still differ.

Explanation

Idempotence concerns the effect, not identical responses.

Example

Deleting a resource twice leaves it absent, even if the second response is 404.