Error handling in the async function

What we're going to do is get the endpoints to trigger errors. We're going to look at how exactly we can handle those endpoints and how we can tweak them to be something that's a little more useful, because currently we're going to get back just a whole bunch of junk.

Get Advanced Node.js Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.