senchalabs/connect — pull request #703 by shtylman (2012-12-07 06:06:45+00:00)
Title: add support for `next(status[, msg])`

When next is called with the first argument as a number, it will be
automatically converted to an Error object with the appropriate status
code.

The motivation behind this change is to make it easier for middleware to
indicate an error has occurred without needing to resort to custom error
classes.

Removes utils.error as it should no longer be used.