/node-app-errors

Custome errors for your node app.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Custome errors for your node app.

const AppErrors = require('@claud/node-app-errors');

Error.prototype.toJSON = function() {
    return AppErrors.BaseError.errorToJson(this);
};

throw new AppErrors.HttpError.Forbidden();