added if, elif statements for http return code warnings related #34