Skip to content

Commit 844b4ba

Browse files
authored
Merge pull request camaraproject#550 from tlohmar/new_409_error_code
New 409 error code called INCOMPATIBLE_STATE
2 parents 2029927 + 8063e00 commit 844b4ba

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

artifacts/CAMARA_common.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ components:
484484
- ABORTED
485485
- ALREADY_EXISTS
486486
- CONFLICT
487+
- INCOMPATIBLE_STATE
487488
- "{{SPECIFIC_CODE}}"
488489
examples:
489490
GENERIC_409_ABORTED:
@@ -504,6 +505,12 @@ components:
504505
status: 409
505506
code: CONFLICT
506507
message: A specified resource duplicate entry found.
508+
GENERIC_409_INCOMPATIBLE_STATE:
509+
description: A resource referenced in the request is in an incompatible state for the requested operation
510+
value:
511+
status: 409
512+
code: INCOMPATIBLE_STATE
513+
message: A referenced resource is in an incompatible state.
507514
GENERIC_409_{{SPECIFIC_CODE}}:
508515
description: Specific conflict situation that is relevant in the context of the API
509516
value:

documentation/CAMARA-API-Design-Guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ In the following, we elaborate on the existing client errors. In particular, we
278278
| 409 | `ABORTED` | Concurrency conflict. | Concurrency of processes of the same nature/scope |
279279
| 409 | `ALREADY_EXISTS` | The resource that a client tried to create already exists. | Trying to create an existing resource |
280280
| 409 | `CONFLICT` | A specified resource duplicate entry found. | Duplication of an existing resource |
281+
| 409 | `INCOMPATIBLE_STATE` | A referenced resource is in an incompatible state. | A resource referenced in the request is in an incompatible state for the requested operation |
282+
281283
| 409 | `{{SPECIFIC_CODE}}` | `{{SPECIFIC_CODE_MESSAGE}}` | Specific conflict situation that is relevant in the context of the API |
282284

283285
<font size="3"><span style="color: blue"> Service Exceptions </span></font>

0 commit comments

Comments
 (0)