Change default error code from 500 to 503 in case message is not ready 91/6291/1 v4.0 BUILD_v4.0.1_1 BUILD_v4.0.1_2
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 20 Jun 2018 15:37:17 +0000 (17:37 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 20 Jun 2018 15:42:57 +0000 (17:42 +0200)
Change-Id: Idf80ca72948c8298ba0789d48b1aff941b626bb3
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_common/msgbase.py

index 98f97bf..2b338df 100644 (file)
@@ -10,7 +10,7 @@ class MsgException(Exception):
     Base Exception class for all msgXXXX exceptions
     """
 
     Base Exception class for all msgXXXX exceptions
     """
 
-    def __init__(self, message, http_code=HTTPStatus.INTERNAL_SERVER_ERROR):
+    def __init__(self, message, http_code=HTTPStatus.SERVICE_UNAVAILABLE):
         """
         General exception
         :param message:  descriptive text
         """
         General exception
         :param message:  descriptive text