'Returns the JSON representation of a success message'

def success(self, message=None):

    self.response.set_status(200)
    success = {'error': False, 'code': 200}
    if message:
        success['message'] = message
    self.json(success)
