fixes accessing status on xhr instead of error