(#1278) - pass errors back from ajax requests