API Design · Junior · Question 9 of 75
What does the Location header in a 201 Created response contain?
- 1The server's physical location
- 2The client's IP address
- ✓Correct answer: The URL of the newly created resource
Explanation
Clients can follow it to fetch the new resource. Many APIs also return the created object in the body.