A typedef for a function that checks if an error is a 401 (Unauthorized) error.
typedef IsUnauthenticatedFn = bool Function(Object error);