API Error Handling Sample Codes To run: npm install node modules Run node app.js in the terminal Run http://localhost:3000/getWithInvalidUrl or http://localhost:3000/getWithValidUrl in POSTMAN to see the result