In res.status(201).json(item), 201 tells the client that:
- The resource was deleted
- Authentication is needed
- A new resource was created
- The request failed
Answer
C) A new resource was created
201 Created confirms creation.
Computer Science MCQ · More Web Services: Accessing and Creating MCQs · Practise