当一项活动因未经授权而失败时,它会返回下面带有错误请求代码的错误消息 - 而不是 401 错误。有没有更好的方法可以捕获 ADF 中的错误消息
Operation on target copy_api_to_file failed:
Failure happened on 'Source' side.
ErrorCode=UserErrorHttpStatusCodeIndicatingFailure,
'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,
Message=The HttpStatusCode 401 indicates failure,
xxxx,Source=Microsoft.DataTransfer.ClientLibrary,'