Fixed an issue with non 200 HTTP response codes