In Restify v5.x all errors definitions were moved into the separate repository: [restify-errors](https://github.com/restify/errors). As a result, restify-oauth2 code requires refactoring as described here: http://restify.com/docs/home/#restify-errors
In Restify v5.x all errors definitions were moved into the separate repository: restify-errors.
As a result, restify-oauth2 code requires refactoring as described here: http://restify.com/docs/home/#restify-errors