Mercurial > hg > orthanc
diff OrthancFramework/Sources/Enumerations.cpp @ 4551:350a22c094f2 db-changes
testing replay of transactions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Mar 2021 19:36:59 +0100 |
parents | 5ffa4e14e4bd |
children | de5e6b04442d |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Enumerations.cpp Tue Mar 02 16:51:19 2021 +0100 +++ b/OrthancFramework/Sources/Enumerations.cpp Tue Mar 02 19:36:59 2021 +0100 @@ -187,6 +187,9 @@ case ErrorCode_BadRange: return "Incorrect range request"; + case ErrorCode_DatabaseCannotSerialize: + return "Database could not serialize access due to concurrent update, the transaction should be retried"; + case ErrorCode_SQLiteNotOpened: return "SQLite: The database is not opened"; @@ -2141,6 +2144,9 @@ case ErrorCode_BadRange: return HttpStatus_416_RequestedRangeNotSatisfiable; + case ErrorCode_DatabaseCannotSerialize: + return HttpStatus_503_ServiceUnavailable; + case ErrorCode_CreateDicomNotString: return HttpStatus_400_BadRequest;