NSURLErrorDomain error codes description

rizzz86 picture rizzz86 · Jun 14, 2012 · Viewed 142.4k times · Source

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

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

I cannot able to find the description of NSURLErrorDomain error codes. What does the 400 error code means ?

Answer

joshOfAllTrades picture joshOfAllTrades · Jun 14, 2012

The NSURLErrorDomain error codes are listed here https://developer.apple.com/documentation/foundation/1508628-url_loading_system_error_codes

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.