UnauthorizedError.new

const UnauthorizedError([
  1. String message = 'Unauthorized'
])

Creates an unauthorized error.

Implementation

const UnauthorizedError([String message = 'Unauthorized'])
  : super(message, 401);