PageError.unauthorized constructor

const PageError.unauthorized([
  1. String message = 'Unauthorized',
  2. List<Cookie> cookies = const []
])

Creates a 401 Unauthorized error.

Implementation

const PageError.unauthorized([
  String message = 'Unauthorized',
  List<Cookie> cookies = const [],
]) : this(message, statusCode: 401, cookies: cookies);