API Testing · Junior · Question 11 of 75
What does 201 Created usually come with?
- 1An empty body and a redirect to the home page
- 2The new resource or a
Locationheader pointing to it - 3A request to send the same data a second time
Show the answer
Correct answer: The new resource or a Location header pointing to it
Explanation
Clients need the new ID or URL. Testers check the body and the Location header, then GET the resource to confirm it exists.