Check status flag rather than statusText for handling 404.