What does res.status(404).json({ error: 'Not found' }) do differently than res.json({ error: 'Not found' })?
-
A
It sets the response body to 404
-
B
It sends the status code as part of the JSON body
-
C
It sets the HTTP status code to 404 before sending JSON
-
D
It ends the response without a body