diff Core/HttpClient.h @ 2787:ad2c32082653

Fix OrthancPluginHttpClient() to return the HTTP status on errors
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Jul 2018 10:33:36 +0200
parents 0196d07a900f
children 959bd8857eb5
line wrap: on
line diff
--- a/Core/HttpClient.h	Wed Jul 25 13:15:11 2018 +0200
+++ b/Core/HttpClient.h	Thu Jul 26 10:33:36 2018 +0200
@@ -288,5 +288,7 @@
 
     void ApplyAndThrowException(Json::Value& answerBody,
                                 HttpHeaders& answerHeaders);
+
+    static void ThrowException(HttpStatus status);
   };
 }