Q. What does res.sendStatus() do?

A
Sets and sends a status code
B
Sends a JSON response
C
Redirects a request
D
Mounts middleware
Solution:

res.sendStatus() sets the status code and sends its string representation.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!