Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Enumerations.cpp @ 4442:f77ee6e6cf47
new error code: ErrorCode_BadRange
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 Jan 2021 14:32:44 +0100 |
parents | d9473bd5ed43 |
children | 5ffa4e14e4bd |
comparison
equal
deleted
inserted
replaced
4441:453cd3a5a0da | 4442:f77ee6e6cf47 |
---|---|
181 case ErrorCode_SslInitialization: | 181 case ErrorCode_SslInitialization: |
182 return "Cannot initialize SSL encryption, check out your certificates"; | 182 return "Cannot initialize SSL encryption, check out your certificates"; |
183 | 183 |
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 | |
187 case ErrorCode_BadRange: | |
188 return "Incorrect range request"; | |
186 | 189 |
187 case ErrorCode_SQLiteNotOpened: | 190 case ErrorCode_SQLiteNotOpened: |
188 return "SQLite: The database is not opened"; | 191 return "SQLite: The database is not opened"; |
189 | 192 |
190 case ErrorCode_SQLiteAlreadyOpened: | 193 case ErrorCode_SQLiteAlreadyOpened: |
2167 return HttpStatus_406_NotAcceptable; | 2170 return HttpStatus_406_NotAcceptable; |
2168 | 2171 |
2169 case ErrorCode_DatabaseUnavailable: | 2172 case ErrorCode_DatabaseUnavailable: |
2170 return HttpStatus_503_ServiceUnavailable; | 2173 return HttpStatus_503_ServiceUnavailable; |
2171 | 2174 |
2175 case ErrorCode_BadRange: | |
2176 return HttpStatus_416_RequestedRangeNotSatisfiable; | |
2177 | |
2172 case ErrorCode_CreateDicomNotString: | 2178 case ErrorCode_CreateDicomNotString: |
2173 return HttpStatus_400_BadRequest; | 2179 return HttpStatus_400_BadRequest; |
2174 | 2180 |
2175 case ErrorCode_CreateDicomOverrideTag: | 2181 case ErrorCode_CreateDicomOverrideTag: |
2176 return HttpStatus_400_BadRequest; | 2182 return HttpStatus_400_BadRequest; |