curveball / core

The Curveball framework is a TypeScript framework for node.js with support for modern HTTP features.
https://curveballjs.org/
MIT License
526 stars 7 forks source link

Better error handling #93

Closed evert closed 6 years ago

evert commented 6 years ago

The curveballjs/http-errors package is now used for a few things:

  1. Instead of just setting a 404 status when no middleware did anything, we now throw an Error.
  2. If any thrown errors implement HttpError, we will respect the httpStatus property.
  3. Slightly better error messaging.

Fixes #92