diff 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
line wrap: on
line diff
--- a/OrthancFramework/Sources/Enumerations.cpp	Sat Jan 09 13:13:06 2021 +0100
+++ b/OrthancFramework/Sources/Enumerations.cpp	Mon Jan 11 14:32:44 2021 +0100
@@ -184,6 +184,9 @@
       case ErrorCode_DiscontinuedAbi:
         return "Calling a function that has been removed from the Orthanc Framework";
 
+      case ErrorCode_BadRange:
+        return "Incorrect range request";
+
       case ErrorCode_SQLiteNotOpened:
         return "SQLite: The database is not opened";
 
@@ -2169,6 +2172,9 @@
       case ErrorCode_DatabaseUnavailable:
         return HttpStatus_503_ServiceUnavailable;
 
+      case ErrorCode_BadRange:
+        return HttpStatus_416_RequestedRangeNotSatisfiable;
+
       case ErrorCode_CreateDicomNotString:
         return HttpStatus_400_BadRequest;