[Answered ]-Return exception errors as JSONs in Tastypie

2👍

You probably want to send the response content as json, not as a serialized json string:

import json
bundle = {"code": 777, "status": False, "error": json.loads(e.response.content)}

Leave a comment