API Design · Junior · Question 8 of 75
What should DELETE /orders/42 return if the order was deleted and there's nothing to send back?
- 1
302 Found - ✓Correct answer:
204 No Content - 3
201 Created
Explanation
200 OK with a body is also fine if you return something. A repeated delete may return 404 or 204; document the choice.