Accept only 200 OK responses from the server
Fix typo and remove non standard strnstr function