In res.status(201).json(item), 201 tells the client that:

  1. The resource was deleted
  2. Authentication is needed
  3. A new resource was created
  4. 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