Mercurial > hg > orthanc
diff Core/Enumerations.cpp @ 2486:ad8f30fc28d1
new error code: DatabaseUnavailable
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 07 Mar 2018 15:46:47 +0100 |
parents | 878b59270859 |
children | 83b8b6743531 |
line wrap: on
line diff
--- a/Core/Enumerations.cpp Tue Mar 06 10:41:05 2018 +0100 +++ b/Core/Enumerations.cpp Wed Mar 07 15:46:47 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; }