← 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?
- A.200
- B.201
- C.404
- 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 →