Passing XMLHTTPRequest objects to error callbacks.