From c07e32427b982fb55e6da750b85a2e8e152c3947 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Tue, 25 Aug 2015 19:29:05 +0200 Subject: [PATCH] issue #1458: HTTP code 500 when unique constraint violated --- lib/Rest/HttpResponse.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Rest/HttpResponse.cpp b/lib/Rest/HttpResponse.cpp index 584cf22a98..9367d744ac 100644 --- a/lib/Rest/HttpResponse.cpp +++ b/lib/Rest/HttpResponse.cpp @@ -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;