Latest CSOM version changed unauthorized error from WebException with magic string to ServerUnauthorizedAccessException.
Latest CSOM version changed unauthorized error from WebException with magic string to ServerUnauthorizedAccessException.

ronnieholm/Bugfree.SharePoint.DiagnosticTools