Protect against HTTP and parsing errors