connection cancels if url returns anything outside of 200-299 status code