CLURLConnection is a drop-in replacement for NSURLConnection that handles HTTP errors using NSError, fixes a few bugs, and automatically drives the network activity indicator on iPhone.

Official CLURLConnection repository