Error controller needs to handle the JSON promise object