Node.js beginner 15 min

HTTP Response

Learn about HTTP Response in Node.js.

HTTP Response

An HTTP response is a message sent from a server back to a client. It includes a status code, headers, and a body with the requested data.

Example

HTTP/1.1 200 OK
Content-Type: application/json

{"message": "Success"}

Practice

Look at a response in the browser Network tab and find the status code and body.