🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Node, Express and REST: all 10 questions

Quiz: Node, Express and REST · Question 8 of 10

A client asks for course 999, which does not exist. Which status code should the API return?

A client asks for course 999, which does not exist. Which status code should the API return?

  1. A.200
  2. B.201
  3. C.404
  4. D.500
Answer & explanation

Correct answer: 404

404 Not Found tells the client the resource does not exist; 500 means a server fault.

Can you get the rest right without peeking?

Take the timed Quiz: Node, Express and REST quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →