diff Core/RestApi/RestApiOutput.cpp @ 1582:bd1889029cbb

encoding of exceptions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 17:39:38 +0200
parents 9c5d93510414
children b1291df2f780
line wrap: on
line diff
--- a/Core/RestApi/RestApiOutput.cpp	Tue Aug 25 16:18:37 2015 +0200
+++ b/Core/RestApi/RestApiOutput.cpp	Tue Aug 25 17:39:38 2015 +0200
@@ -144,7 +144,7 @@
         status != HttpStatus_500_InternalServerError &&
         status != HttpStatus_415_UnsupportedMediaType)
     {
-      throw OrthancException("This HTTP status is not allowed in a REST API");
+      throw OrthancException(ErrorCode_BadHttpStatusInRest);
     }
 
     CheckStatus();