changeset 1194:7d2c8d28ad87

generalization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 23 Oct 2014 13:12:23 +0200
parents e95e7f9eba96
children 97089aa85b5f
files Core/RestApi/RestApiOutput.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core/RestApi/RestApiOutput.cpp	Mon Oct 20 16:46:40 2014 +0200
+++ b/Core/RestApi/RestApiOutput.cpp	Thu Oct 23 13:12:23 2014 +0200
@@ -128,7 +128,8 @@
 
   void RestApiOutput::SignalError(HttpStatus status)
   {
-    if (status != HttpStatus_403_Forbidden &&
+    if (status != HttpStatus_400_BadRequest &&
+        status != HttpStatus_403_Forbidden &&
         status != HttpStatus_500_InternalServerError &&
         status != HttpStatus_415_UnsupportedMediaType)
     {