QuestenaÜben und erkennen, was als Nächstes dran ist
Frage 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 returnedRichtige Antwort
  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

Erklärung

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.

Mit diesem Test weitermachen

Übung starten
Frage 2: A DELETE request succeeds, and the client repeats it. The… · HTTP Semantics · Questena