You should add `raw=True` otherwise `toolkit.response` will try to `json.dumps` it.