This repository contains sample code on how to do error handling with the Node.js express framework.
This repository is part of the Error Handling in express tutorial provided by productioncoder.com.
For updates, please reach out to @_jgoebel on Twitter.
This repository illustrates how to handle expected errors in a DRY way in express and how to not expose any internal structure in case of unexpected errors.
Run
npm install
to install the project's dependencies.
Execute the dev
script to start up your server.
npm run dev
Expected payload
{
"msg": "my tweet message"
}