Added response checking to confirm a valid 200 http response code is returned