facebook/facebook-ios-sdk — pull request #452 by revetkn (2012-04-15 17:02:11+00:00)
Title: Reference error constants by name instead of hardcoding

Use NSURLErrorDomain instead of @"NSURLErrorDomain" and NSURLErrorCancelled instead of -999.

Unfortunately I don't think WebKitErrorDomain and WebKitErrorFrameLoadInterruptedByPolicyChange (-102) are exposed in the public iOS API so we can't do the same with those.