ioscfnetworknsurlerrordomain

What are the NSURLErrorDomain error code descriptions?


This is my first experience of developing an iOS app. I am trying to POST some data using the Facebook graph API. I am constantly getting the following error:

The operation couldn’t be completed. (NSURLErrorDomain error 400.)

I cannot find the description of NSURLErrorDomain error codes. What do the 400 error code mean?


Solution

  • The NSURLErrorDomain error codes are listed here.

    However, 400 is just the http status code (http://www.w3.org/Protocols/HTTP/HTRESP.html) being returned which means you've got something wrong with your request.