1
0
Fork 0

Add missing return code if uniq constraints are violated.

This commit is contained in:
Wilfried Goesgens 2016-01-21 15:03:20 +01:00
parent c225934f98
commit 594f48c630
1 changed files with 7 additions and 1 deletions

View File

@ -71,6 +71,12 @@
/// is returned if the collection specified by *collection* is unknown. The
/// response body contains an error document in this case.
///
/// @RESTRETURNCODE{409}
/// is returned if a document with the same qualifiers in
/// an indexed attribute conflicts with an already existing document
/// and thus violating that uniq constraint.
/// The response body contains an error document in this case.
///
/// @EXAMPLES
///
/// Create a document in a collection named *products*. Note that the
@ -180,4 +186,4 @@
/// logJsonResponse(response);
/// @END_EXAMPLE_ARANGOSH_RUN
/// @endDocuBlock
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////