Mercurial > hg > orthanc-webviewer
diff Orthanc/Core/Enumerations.cpp @ 186:ab66a6baf2ae
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Mar 2018 16:59:06 +0100 |
parents | dd1ad819ca33 |
children | a11bf02917e9 |
line wrap: on
line diff
--- a/Orthanc/Core/Enumerations.cpp Tue Mar 13 10:24:38 2018 +0100 +++ b/Orthanc/Core/Enumerations.cpp Thu Mar 22 16:59:06 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; }