Commit 20e33652 authored by Christos Stavrakakis's avatar Christos Stavrakakis

Make API faults have default 500 status code

Make the default status code of API Fault and AstakosClientException
to be 500.
parent 35598f74
......@@ -33,7 +33,7 @@
class AstakosClientException(Exception):
def __init__(self, message='', details='', status=None):
def __init__(self, message='', details='', status=500):
self.message = message
self.details = details
if not hasattr(self, 'status'):
......
......@@ -40,7 +40,7 @@ def camel_case(s):
class Fault(Exception):
def __init__(self, message='', details='', name='', code=None):
def __init__(self, message='', details='', name='', code=500):
self.message = message
self.details = details
if not hasattr(self, 'code'):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment