diff OrthancFramework/Sources/Enumerations.cpp @ 4608:de5e6b04442d db-changes

added ErrorCode_Revision
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 31 Mar 2021 14:34:41 +0200
parents 350a22c094f2
children 95ffe3b6ef7c
line wrap: on
line diff
--- a/OrthancFramework/Sources/Enumerations.cpp	Tue Mar 30 18:10:27 2021 +0200
+++ b/OrthancFramework/Sources/Enumerations.cpp	Wed Mar 31 14:34:41 2021 +0200
@@ -190,6 +190,9 @@
       case ErrorCode_DatabaseCannotSerialize:
         return "Database could not serialize access due to concurrent update, the transaction should be retried";
 
+      case ErrorCode_Revision:
+        return "A bad revision number was provided, indicates conflict between multiple updates";
+
       case ErrorCode_SQLiteNotOpened:
         return "SQLite: The database is not opened";
 
@@ -2147,6 +2150,9 @@
       case ErrorCode_DatabaseCannotSerialize:
         return HttpStatus_503_ServiceUnavailable;
 
+      case ErrorCode_Revision:
+        return HttpStatus_409_Conflict;
+
       case ErrorCode_CreateDicomNotString:
         return HttpStatus_400_BadRequest;