changeset 1984:9f09a20e41e2

corrected error code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 25 Apr 2016 14:31:19 +0200
parents 0af087300b26
children 3fcea6dc151d
files Plugins/Engine/OrthancPlugins.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp	Mon Apr 25 14:23:34 2016 +0200
+++ b/Plugins/Engine/OrthancPlugins.cpp	Mon Apr 25 14:31:19 2016 +0200
@@ -962,7 +962,7 @@
     }
     else
     {
-      throw OrthancException(ErrorCode_BadRequest);
+      throw OrthancException(ErrorCode_UnknownResource);
     }
   }
 
@@ -994,7 +994,7 @@
     }
     else
     {
-      throw OrthancException(ErrorCode_BadRequest);
+      throw OrthancException(ErrorCode_UnknownResource);
     }
   }
 
@@ -1021,7 +1021,7 @@
     }
     else
     {
-      throw OrthancException(ErrorCode_BadRequest);
+      throw OrthancException(ErrorCode_UnknownResource);
     }
   }
 
@@ -1038,7 +1038,7 @@
 
     if (!HttpToolbox::SimpleDelete(handler, RequestOrigin_Plugins, uri))
     {
-      throw OrthancException(ErrorCode_BadRequest);
+      throw OrthancException(ErrorCode_UnknownResource);
     }
   }