mirror of https://gitee.com/bigwinds/arangodb
issue #1458: HTTP code 500 when unique constraint violated
This commit is contained in:
parent
242c706844
commit
c07e32427b
|
@ -227,6 +227,7 @@ HttpResponse::HttpResponseCode HttpResponse::responseCode (int code) {
|
|||
|
||||
case TRI_ERROR_ARANGO_CONFLICT:
|
||||
case TRI_ERROR_ARANGO_GEO_INDEX_VIOLATED:
|
||||
case TRI_ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED:
|
||||
case TRI_ERROR_CURSOR_BUSY:
|
||||
return CONFLICT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue