print http error message to console as well