Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error Codes] Update PreconditionFailed error description #2077

Merged
merged 2 commits into from
Jul 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -78,8 +78,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