diff Resources/Orthanc/Core/Enumerations.cpp @ 130:4f3945a2b725

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 22 Mar 2018 17:32:05 +0100
parents a18bfe1fdd62
children 3112e5edb8b6
line wrap: on
line diff
--- a/Resources/Orthanc/Core/Enumerations.cpp	Fri Feb 02 18:11:32 2018 +0100
+++ b/Resources/Orthanc/Core/Enumerations.cpp	Thu Mar 22 17:32:05 2018 +0100
@@ -161,6 +161,9 @@
       case ErrorCode_NullPointer:
         return "Cannot handle a NULL pointer";
 
+      case ErrorCode_DatabaseUnavailable:
+        return "The database is currently not available (probably a transient situation)";
+
       case ErrorCode_SQLiteNotOpened:
         return "SQLite: The database is not opened";
 
@@ -1617,6 +1620,9 @@
       case ErrorCode_NotAcceptable:
         return HttpStatus_406_NotAcceptable;
 
+      case ErrorCode_DatabaseUnavailable:
+        return HttpStatus_503_ServiceUnavailable;
+
       default:
         return HttpStatus_500_InternalServerError;
     }