Welcome to the Linux Foundation Forum!

Typo in Chapter 5 Restful Express (II)

rodrom
rodrom Posts: 3
edited January 10 in LFW212 Class Forum

Thanks for the update for Node version 22.

There is a small typo at the beginning of

Implementing a RESTful JSON GET with Express (2)

The first two statements to run on a terminal to output the statusCode of the response are logging the headers instead of the HTTP STATUS CODE returned.

The part inside the command console.log(res.headers) should be console.log(res.statusCode)

Categories

Upcoming Training