Mobile Platforms

iOS Error Codes

iOS apps surface network failures as NSURLErrorDomain codes, usually shown as negative numbers. On iPhone and iPad, the same code can be caused by cellular policy, roaming, an active call, or the app's network permissions, so check the device context as well as the server.

9 codes Source: Apple Developer: NSURLErrorDomain Last verified 2026-11-10
9 codes
CodeWhat it meansSeveritySource
-1001 The Request Timed Out
The request did not complete before the timeout.
warning Apple Developer: NSURLErrorDomain
-1003 Cannot Find Host
The hostname could not be resolved.
error Apple Developer: NSURLErrorDomain
-1004 Cannot Connect to Host
The host was found, but the connection could not be established.
error Apple Developer: NSURLErrorDomain
-1005 The Network Connection Was Lost
The connection was established but then dropped.
warning Apple Developer: NSURLErrorDomain
-1009 The Internet Connection Appears to Be Offline
The device is not connected to the internet.
warning Apple Developer: NSURLErrorDomain
-1018 International Roaming Is Off
Data roaming is disabled while the device is abroad.
warning Apple Developer: NSURLErrorDomain
-1019 The Call Is Active
The connection is not allowed while a phone call is active.
warning Apple Developer: NSURLErrorDomain
-1020 Cellular Data Is Not Allowed
The app is not allowed to use cellular data.
warning Apple Developer: NSURLErrorDomain
-1006 Cannot Find Host
The DNS lookup for the host failed.
warning Apple Developer: NSURLErrorDomain

Common iOS codes

How to read iOS codes

Start with the exact code and the context in which it appeared. A code is only a label: the same value can mean different things in different products, versions, or components. Use the quick answer and the official source on the detail page to confirm the meaning before changing a configuration or deleting data.

If the code is new to you, search this page first, then open the detail page for causes and step-by-step fixes. When a fix requires administrator rights, a reboot, or a data-destructive action, the page will say so explicitly.

Found a mistake or a missing code?

Send us the product, code, and official source. We review every correction before publishing.

Suggest a correction