pass ajax errors back

I noticed when reviewing #1274 that the errors don't always get through from http requrests