Questenaتمرینی که نشان می‌دهد بعد چه چیزی را مرور کنید
سؤال 2

A DELETE request succeeds, and the client repeats it. The second request returns 404. Does that make DELETE non-idempotent?

  1. Yes, unless the server suppresses the 404 and returns 204 again
  2. No, because idempotency concerns the intended effect on the server, not the response returnedپاسخ درست
  3. Yes, because a different status code was returned the second time
  4. No, because 404 is treated as a successful deletion by the spec

توضیح

Idempotency is defined over the intended effect on the server of repeating the request, and the spec explicitly notes that repeating an idempotent request has the same intended effect even though the response may differ. Nothing requires the second response to match the first.

ادامهٔ این آزمون

شروع تمرین
سؤال 2: A DELETE request succeeds, and the client repeats it. The… · HTTP Semantics · Questena