Added TODO
Send real error only if content is undefined
Stringify and return json content