'Object constructor, returns an error response containing the provided exception messages'

def __init__(self, error_messages=[], status=400):

    if isinstance(error_messages, basestring):
        error_messages = [error_messages]
    content = json.dumps({'errors': error_messages}, indent=2, ensure_ascii=False)
    super(JsonError, self).__init__(content, content_type='application/json;    charset=utf-8', status=status)
