Skip to content

Commit 3b62bae

Browse files
fixing and rewording If-Match header and status 412 (SPECITS-66)
1 parent 3efb97d commit 3b62bae

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

specifications/docs/overview/Requests_and_responses.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,10 @@ Below a list of `code_string` values and their meaning (taken from [openEHR term
8383

8484
## If-Match and accidental overwrites
8585

86-
This `If-Match` request header SHOULD be used by the clients to prevent accidental overwrites when multiple user
87-
agents might be acting in parallel on the same resource. This is only required by a small set of resources of this specification,
88-
as in most of the other cases the `preceding_version_uid` path segment is instead required in order to prevent such accidental overwrites.
89-
In case a service receives this header, and the condition evaluates to `false`, it MUST respond with
90-
HTTP status code `412 Precondition Failed` and return also latest `version_uid` in the `Location` and `ETag` response headers.
86+
The `If-Match` request header SHOULD be used by the clients to prevent accidental overwrites when multiple user
87+
agents might be acting in parallel on the same resource. This is only required by a small set of versioned resources of this specification.
88+
In case a service receives this header, and the condition evaluates to `false`, it MUST NOT perform the requested method and instead MUST respond with
89+
HTTP status code `412 Precondition Failed`, and SHOULD return also latest `version_uid` in the `Location` and `ETag` response headers.
9190

9291
Example:
9392
```http

0 commit comments

Comments
 (0)