diff --git a/libraries/Microsoft.Bot.Builder.Azure.Blobs/BlobsStorage.cs b/libraries/Microsoft.Bot.Builder.Azure.Blobs/BlobsStorage.cs index f5d053c19a..44920b628a 100644 --- a/libraries/Microsoft.Bot.Builder.Azure.Blobs/BlobsStorage.cs +++ b/libraries/Microsoft.Bot.Builder.Azure.Blobs/BlobsStorage.cs @@ -291,7 +291,7 @@ internal BlobsStorage(BlobContainerClient containerClient, JsonSerializer jsonSe ex); } catch (RequestFailedException ex) - when (ex.Status == 412) + when (ex.Status == (int)HttpStatusCode.PreconditionFailed) { throw new InvalidOperationException($"Etag conflict: {ex.Message}"); }