Skip to content

Commit

Permalink
[Error Codes] Update PreconditionFailed error description (#2077)
Browse files Browse the repository at this point in the history
* [Error Codes] Update PreconditionFailed error description

* Remove space
  • Loading branch information
jamdavi authored Jul 9, 2021
1 parent 421f23e commit e91758b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iothub/service/src/Common/Exceptions/ErrorCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ public enum ErrorCode

ModuleAlreadyExistsOnDevice = 409301,

// PreconditionFailed - 412
PreconditionFailed = 412001,
/// <summary>
/// The etag in the request does not match the etag of the existing resource, as per <see href="https://datatracker.ietf.org/doc/html/rfc7232">RFC7232</see>. The etag is controlled by the service and is based on the device identity it should not be updated in normal operations.
/// </summary>
PreconditionFailed = 412001, // PreconditionFailed - 412

/// <summary>
/// When a device receives a cloud-to-device message from the queue (for example, using ReceiveAsync())
Expand Down

0 comments on commit e91758b

Please sign in to comment.