Use Controller::renderJson() in site/error