Can someone post the value for the list of possible NSURLError codes. I am getting -1004 as the error code value, I can see based on the description it is "Could not connect to the server", but is there any list of error number and information combination of NSURL?
In Xcode, press Cmd-Shift-O (the letter) or select File -> Open Quickly... and start typing nsurlerror in the text field. Once you see it in the list select NSURLError.h to view all error definitions in the Xcode editor.