(msg)
| 20 | util.inherits(NotFoundError, AppError) |
| 21 | |
| 22 | var UnauthorizedError = function(msg) { |
| 23 | UnauthorizedError.super_.call(this, msg, this.constructor) |
| 24 | this.message = msg || `401 Unauthorized`; |
| 25 | this.name = 'UnauthorizedError' |
| 26 | this.status = 401 |
| 27 | } |
| 28 | util.inherits(UnauthorizedError, AppError) |
| 29 | |
| 30 | module.exports = { |
nothing calls this directly
no outgoing calls
no test coverage detected