Add HTTP error handling
Fix code_block formatting
Fix whitespace