Patch in http error handling that was removed in the xhr 2.0 module