thrownewUserDataSyncError(`Request '${options.url?.toString()}' is not authorized.`,UserDataSyncErrorCode.Unauthroized,source);
}
returncontext;
if(context.res.statusCode===412){
// There is a new value. Throw Rejected Error
thrownewUserDataSyncError(`${options.type} request '${options.url?.toString()}' failed with precondition. There is new data exists for this resource. Make the request again with latest data.`,UserDataSyncErrorCode.Rejected,source);
}
if(context.res.statusCode===413){
// Throw Too Large Payload Error
thrownewUserDataSyncError(`${options.type} request '${options.url?.toString()}' failed because data is too large.`,UserDataSyncErrorCode.TooLarge,source);
message:localize('too many errors',"Turned off sync because of too many failure attempts. Please open Sync log to check the failures and turn on sync."),
message:localize('too large',"Turned off sync because size of the {0} file to sync is larger than {1}. Please open the file and reduce the size and turn on sync",sourceArea,'1MB'),