# HG changeset patch # User Sebastien Jodogne # Date 1461587479 -7200 # Node ID 9f09a20e41e2eb00dcef45456644b241371d890e # Parent 0af087300b260051ce3c0fa4c68834b8f62250d2 corrected error code diff -r 0af087300b26 -r 9f09a20e41e2 Plugins/Engine/OrthancPlugins.cpp --- 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); } }