Categories
JavaScript Answers

How to send a success status to browser from Node.js and Express?

Spread the love

To send a success status to browser from Node.js and Express, we call the sendStatus method.

For instance, we write

res.sendStatus(200)

to call the sendStatus method to send a 200 response code.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *