projects
/
osm
/
common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change default error code from 500 to 503 in case message is not ready
[osm/common.git]
/
osm_common
/
msgbase.py
diff --git
a/osm_common/msgbase.py
b/osm_common/msgbase.py
index
98f97bf
..
2b338df
100644
(file)
--- a/
osm_common/msgbase.py
+++ b/
osm_common/msgbase.py
@@
-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