add put_records API

fix create_stream API to get right response in case of stream already exists
This commit is contained in:
mfranke 2015-11-12 10:05:02 +01:00
commit f93b9a86e9
3 changed files with 47 additions and 1 deletions

View file

@ -13,6 +13,15 @@ class ResourceNotFoundError(BadRequest):
})
class ResourceInUseError(BadRequest):
def __init__(self, message):
super(ResourceNotFoundError, self).__init__()
self.description = json.dumps({
"message": message,
'__type': 'ResourceInUseException',
})
class StreamNotFoundError(ResourceNotFoundError):
def __init__(self, stream_name):
super(StreamNotFoundError, self).__init__(