What is This Table?
This table maps equivalent error codes across different operating systems and programming languages. If you know an error in one system, you can find the equivalent in another.
How to use: Find your error in the left column, then look across to see the equivalent codes in other systems.
File Not Found Errors
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0x80070002 | errno-2 (ENOENT) | -43 (fnfErr) | FileNotFoundError | FileNotFoundException | errno 2 (ENOENT) | E_WARNING |
| ERROR_FILE_NOT_FOUND | ENOENT | fnfErr | FileNotFoundError | FileNotFoundException | ENOENT | file not found |
Permission Denied Errors
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0x80070005 | errno-13 (EACCES) | -50 (paramErr) | PermissionError | N/A | errno 13 (EACCES) | E_WARNING |
| E_ACCESSDENIED | EACCES | paramErr | PermissionError | — | EACCES | Permission denied |
Out of Memory Errors
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0x8007000e | errno-12 (ENOMEM) | -108 (memFullErr) | MemoryError | OutOfMemoryError | errno 12 (ENOMEM) | E_ERROR |
| E_OUTOFMEMORY | ENOMEM | memFullErr | MemoryError | OutOfMemoryError | ENOMEM | Allowed memory |
Segment Fault / Access Violation
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0xc0000005 | SIGSEGV | SIGSEGV | Segmentation Fault | N/A | Segmentation Fault | E_ERROR |
| STATUS_ACCESS_VIOLATION | segmentation fault | segmentation fault | Segfault | — | SIGSEGV | Segmentation fault |
Division by Zero
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| N/A | SIGFPE | SIGFPE | ZeroDivisionError | ArithmeticException | SIGFPE | E_WARNING |
| — | floating point exception | floating point exception | ZeroDivisionError | ArithmeticException | SIGFPE | Division by zero |
Null Pointer / Reference Errors
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0xc0000005 | SIGSEGV | SIGSEGV | AttributeError | NullPointerException | SIGSEGV | E_WARNING |
| STATUS_ACCESS_VIOLATION | segmentation fault | segmentation fault | ‘NoneType’ has no attribute | null pointer dereference | SIGSEGV | Trying to access property of non-object |
Stack Overflow
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0xc00000fd | SIGSEGV | SIGSEGV | RecursionError | StackOverflowError | Stack Overflow | E_ERROR |
| STATUS_STACK_OVERFLOW | segmentation fault | segmentation fault | maximum recursion depth exceeded | stack overflow | stack smashing | Allowed stack size |
Too Many Open Files
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0x80070006 | errno-24 (EMFILE) | -24 (tooManyOpenFilesErr) | OSError | N/A | errno 24 (EMFILE) | E_WARNING |
| ERROR_TOO_MANY_OPEN_FILES | EMFILE | tooManyOpenFilesErr | Too many open files | — | EMFILE | Too many open files |
Connection Refused
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0x8007274d | ECONNREFUSED | ECONNREFUSED | ConnectionRefusedError | ConnectException | ECONNREFUSED | E_WARNING |
| WSAECONNREFUSED | ECONNREFUSED | connection refused | Connection refused | Connection refused | ECONNREFUSED | Connection refused |
Timeout Errors
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0x800705b4 | ETIMEDOUT | ETIMEDOUT | TimeoutError | SocketTimeoutException | ETIMEDOUT | E_WARNING |
| ERROR_TIMEOUT | ETIMEDOUT | operation timed out | Timed out | Read timed out | ETIMEDOUT | Connection timed out |
Device/Resource Busy
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0x80070020 | errno-16 (EBUSY) | -16 (devBusyErr) | N/A | N/A | errno 16 (EBUSY) | E_WARNING |
| ERROR_BUSY | EBUSY | devBusyErr | — | — | EBUSY | Device or resource busy |
Broken Pipe
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0x8007006d | errno-32 (EPIPE) | -32 (brokenPipeErr) | BrokenPipeError | N/A | errno 32 (EPIPE) | E_WARNING |
| ERROR_BROKEN_PIPE | EPIPE | brokenPipeErr | Broken pipe | — | EPIPE | Broken pipe |
File Already Exists
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0x800700b7 | errno-17 (EEXIST) | -48 (dupFNErr) | FileExistsError | FileAlreadyExistsException | errno 17 (EEXIST) | E_WARNING |
| ERROR_ALREADY_EXISTS | EEXIST | dupFNErr | File exists | File already exists | EEXIST | File already exists |
Network Unreachable
| Windows | Linux | macOS | Python | Java | C/C++ | PHP |
|---|---|---|---|---|---|---|
| 0x80072751 | ENETUNREACH | ENETUNREACH | ConnectionError | NoRouteToHostException | ENETUNREACH | E_WARNING |
| WSAENETUNREACH | ENETUNREACH | network is unreachable | Network is unreachable | Network is unreachable | ENETUNREACH | Network unreachable |
How to Use This Table
- Find your error in the system you’re working with
- Look across the row to find equivalent errors in other systems
- Click the link to go to the detailed error page with fixes
- Use the “Quick Fix” column for immediate solutions
Related Pages
- Quick Reference Table — All error codes in one table
- Windows NTSTATUS Reference — Complete Windows NTSTATUS codes
- Search — Search for any error code
Comments