Skip to content

Commit 2a7259c

Browse files
authored
Merge pull request #21 from sdatspun2/main
Issue #19
2 parents d5a3af8 + 02d82fe commit 2a7259c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

draft-ietf-httpapi-idempotency-key-header.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ If the `Idempotency-Key` request header is missing for a documented idempotent o
149149
{
150150
"type": "https://developer.example.com/idempotency",
151151
"title": "Idempotency-Key is missing",
152-
"detail": "This operation is idempotent and it requires correct usage of Idempotency Key.",
152+
"detail": "This operation is idempotent and it requires correct
153+
usage of Idempotency Key.",
153154
}
154155

155156
Alternately, using the HTTP header `Link`, the client can be informed about the error as shown below.
@@ -167,7 +168,9 @@ If there is an attempt to reuse an idempotency key with a different request payl
167168
{
168169
"type": "https://developer.example.com/idempotency",
169170
"title": "Idempotency-Key is already used",
170-
"detail": "This operation is idempotent and it requires correct usage of Idempotency Key. Idempotency Key MUST not be reused across different payloads of this operation.",
171+
"detail": "This operation is idempotent and it requires
172+
correct usage of Idempotency Key. Idempotency Key MUST not be
173+
reused across different payloads of this operation.",
171174
}
172175

173176

@@ -186,7 +189,8 @@ If the request is retried, while the original request is still being processed,
186189
{
187190
"type": "https://developer.example.com/idempotency",
188191
"title": "A request is outstanding for this Idempotency-Key",
189-
"detail": "A request with the same Idempotency-Key for the same operation is being processed or is outstanding.",
192+
"detail": "A request with the same Idempotency-Key for the
193+
same operation is being processed or is outstanding.",
190194
}
191195

192196
Or, alternately using the HTTP header `Link` pointing to the relevant documentation
@@ -195,7 +199,7 @@ Or, alternately using the HTTP header `Link` pointing to the relevant documentat
195199
Link: <https://developer.example.com/idempotency>;
196200
rel="describedby"; type="text/html"
197201

198-
Error scenarios above describe the status of failed idempotent requests after the resource server prcocesses them. Clients MUST correct the requests (with the execption of 409 where no correction is required) before performing a retry operation, or the the resource server MUST fail the request and return one of the above errors.
202+
Error scenarios above describe the status of failed idempotent requests after the resource server prcocesses them. Clients MUST correct the requests (with the exception of 409 where no correction is required) before performing a retry operation, or the the resource server MUST fail the request and return one of the above errors.
199203

200204
For other 4xx/5xx errors, such as 401, 403, 500, 502, 503, 504, 429, or any other HTTP error code that is not listed here, the client SHOULD act appropriately by following the resource server's documentation.
201205

0 commit comments

Comments
 (0)