Add error detection for HTTP connection.