Skip to content

Glossary: Building APIs with Node.js

Error handler

Also written: setErrorHandler, setNotFoundHandler

A function that decides what every error turns into. kc-api's passes client errors through and hides bugs behind a plain 500.

Where the book teaches it

Related terms

Error shapeHttpError