statusText is not a function and is on xhr