1
0
Fork 0

issue #1458: HTTP code 500 when unique constraint violated

This commit is contained in:
Jan Steemann 2015-08-25 19:29:05 +02:00
parent 242c706844
commit c07e32427b
1 changed files with 1 additions and 0 deletions

View File

@ -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;