Controller error pages now handle JSON output properly when set.