/** * API that generates a 401 Boom error * @throws {Error} Unauthorized Boom error with custom message */ boomError () { throw unauthorized('Custom authorization error') }
/** * API that generates a 401 Boom error * @async * @throws always with Unauthorized Boom error with custom message */ async boomError () { throw unauthorized('Custom authorization error') }