From e91758be5a83418f9c379251f836a30186951f05 Mon Sep 17 00:00:00 2001 From: jamdavi <73593426+jamdavi@users.noreply.github.com> Date: Fri, 9 Jul 2021 16:39:50 -0600 Subject: [PATCH] [Error Codes] Update PreconditionFailed error description (#2077) * [Error Codes] Update PreconditionFailed error description * Remove space --- iothub/service/src/Common/Exceptions/ErrorCode.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iothub/service/src/Common/Exceptions/ErrorCode.cs b/iothub/service/src/Common/Exceptions/ErrorCode.cs index 994d90e489..d32e3db3c4 100644 --- a/iothub/service/src/Common/Exceptions/ErrorCode.cs +++ b/iothub/service/src/Common/Exceptions/ErrorCode.cs @@ -165,8 +165,10 @@ public enum ErrorCode ModuleAlreadyExistsOnDevice = 409301, - // PreconditionFailed - 412 - PreconditionFailed = 412001, + /// + /// The etag in the request does not match the etag of the existing resource, as per RFC7232. The etag is controlled by the service and is based on the device identity it should not be updated in normal operations. + /// + PreconditionFailed = 412001, // PreconditionFailed - 412 /// /// When a device receives a cloud-to-device message from the queue (for example, using ReceiveAsync())