def error_response(self, error, environ, start_response):
        headerbase = [('Content-Type', 'text/plain')]
        start_response(self.canned_collection['400'], headerbase)
        d = {}
        d['success'] = False
        d['failure'] = True
        d['data'] = {'msg': error}
        _ret = json.dumps(d)
        log.debug('ERROR: %s' % _ret)
        return _ret
dataset/ETHPy150Open rsgalloway/grit/grit/server/server.py/JSONServer.error_response/original