macOS Error Codes
macOS network and app errors often surface as NSURLErrorDomain codes, shown as negative numbers such as -1001 or -1009. They describe why a URL loading system could not complete a request. The same code can appear in Safari, an app, or a command-line tool, so check the context before changing network settings.
| Code | What it means | Severity | Source |
|---|---|---|---|
-1001 |
The Request Timed Out The request did not complete within the allowed time. |
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 |
-1011 |
The Server Returned an Invalid Response The server response could not be parsed or was malformed. |
error | Apple Developer: NSURLErrorDomain |
-1200 |
Secure Connection Failed The TLS handshake failed. |
fatal | Apple Developer: NSURLErrorDomain |
-1202 |
The Server Certificate Is Untrusted The server certificate is not trusted by macOS. |
fatal | Apple Developer: NSURLErrorDomain |
-1006 |
Cannot Find Host The DNS lookup for the host failed. |
warning | Apple Developer: NSURLErrorDomain |
No codes match that filter.
Common macOS codes
How to read macOS 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.