comparison 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
comparison
equal deleted inserted replaced
4540:9c0cff7a6ca2 4551:350a22c094f2
184 case ErrorCode_DiscontinuedAbi: 184 case ErrorCode_DiscontinuedAbi:
185 return "Calling a function that has been removed from the Orthanc Framework"; 185 return "Calling a function that has been removed from the Orthanc Framework";
186 186
187 case ErrorCode_BadRange: 187 case ErrorCode_BadRange:
188 return "Incorrect range request"; 188 return "Incorrect range request";
189
190 case ErrorCode_DatabaseCannotSerialize:
191 return "Database could not serialize access due to concurrent update, the transaction should be retried";
189 192
190 case ErrorCode_SQLiteNotOpened: 193 case ErrorCode_SQLiteNotOpened:
191 return "SQLite: The database is not opened"; 194 return "SQLite: The database is not opened";
192 195
193 case ErrorCode_SQLiteAlreadyOpened: 196 case ErrorCode_SQLiteAlreadyOpened:
2139 return HttpStatus_503_ServiceUnavailable; 2142 return HttpStatus_503_ServiceUnavailable;
2140 2143
2141 case ErrorCode_BadRange: 2144 case ErrorCode_BadRange:
2142 return HttpStatus_416_RequestedRangeNotSatisfiable; 2145 return HttpStatus_416_RequestedRangeNotSatisfiable;
2143 2146
2147 case ErrorCode_DatabaseCannotSerialize:
2148 return HttpStatus_503_ServiceUnavailable;
2149
2144 case ErrorCode_CreateDicomNotString: 2150 case ErrorCode_CreateDicomNotString:
2145 return HttpStatus_400_BadRequest; 2151 return HttpStatus_400_BadRequest;
2146 2152
2147 case ErrorCode_CreateDicomOverrideTag: 2153 case ErrorCode_CreateDicomOverrideTag:
2148 return HttpStatus_400_BadRequest; 2154 return HttpStatus_400_BadRequest;