From: tierno Date: Wed, 20 Jun 2018 15:37:17 +0000 (+0200) Subject: Change default error code from 500 to 503 in case message is not ready X-Git-Tag: BUILD_v4.0.1_1^0 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fcommon.git;a=commitdiff_plain;h=a4eaefe74757ccbd7ac513b72f21a3bf8bf391cb Change default error code from 500 to 503 in case message is not ready Change-Id: Idf80ca72948c8298ba0789d48b1aff941b626bb3 Signed-off-by: tierno --- diff --git a/osm_common/msgbase.py b/osm_common/msgbase.py index 98f97bf..2b338df 100644 --- a/osm_common/msgbase.py +++ b/osm_common/msgbase.py @@ -10,7 +10,7 @@ class MsgException(Exception): 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