API Testing · Junior · Question 39 of 75
What should happen when you DELETE the same resource twice?
- 1The second call deletes a different resource instead
- 2The second call changes nothing; often it returns 404 or 204
- 3The server returns 500 because the item is gone
Show the answer
Correct answer: The second call changes nothing; often it returns 404 or 204
Explanation
The resource stays deleted, which is what idempotency means. Testers check the API documents and behaves consistently.