Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 36c336e

Browse files
AshishThakurpolyfractal
authored andcommitted
Changed response for 409 conflict message for 2.x (#485)
1 parent 930644f commit 36c336e

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

030_Data/40_Version_control.asciidoc

+15-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,21 @@ code, and a body like the following:
154154
[source,js]
155155
--------------------------------------------------
156156
{
157-
"error" : "VersionConflictEngineException[[website][2] [blog][1]:
158-
version conflict, current [2], provided [1]]",
159-
"status" : 409
157+
"error": {
158+
"root_cause": [
159+
{
160+
"type": "version_conflict_engine_exception",
161+
"reason": "[blog][1]: version conflict, current [2], provided [1]",
162+
"index": "website",
163+
"shard": "3"
164+
}
165+
],
166+
"type": "version_conflict_engine_exception",
167+
"reason": "[blog][1]: version conflict, current [2], provided [1]",
168+
"index": "website",
169+
"shard": "3"
170+
},
171+
"status": 409
160172
}
161173
--------------------------------------------------
162174
// SENSE: 030_Data/40_Concurrency.json

0 commit comments

Comments
 (0)