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

WindowsLinuxmacOSPythonJavaC/C++PHP
0x80070002errno-2 (ENOENT)-43 (fnfErr)FileNotFoundErrorFileNotFoundExceptionerrno 2 (ENOENT)E_WARNING
ERROR_FILE_NOT_FOUNDENOENTfnfErrFileNotFoundErrorFileNotFoundExceptionENOENTfile not found

Permission Denied Errors

WindowsLinuxmacOSPythonJavaC/C++PHP
0x80070005errno-13 (EACCES)-50 (paramErr)PermissionErrorN/Aerrno 13 (EACCES)E_WARNING
E_ACCESSDENIEDEACCESparamErrPermissionErrorEACCESPermission denied

Out of Memory Errors

WindowsLinuxmacOSPythonJavaC/C++PHP
0x8007000eerrno-12 (ENOMEM)-108 (memFullErr)MemoryErrorOutOfMemoryErrorerrno 12 (ENOMEM)E_ERROR
E_OUTOFMEMORYENOMEMmemFullErrMemoryErrorOutOfMemoryErrorENOMEMAllowed memory

Segment Fault / Access Violation

WindowsLinuxmacOSPythonJavaC/C++PHP
0xc0000005SIGSEGVSIGSEGVSegmentation FaultN/ASegmentation FaultE_ERROR
STATUS_ACCESS_VIOLATIONsegmentation faultsegmentation faultSegfaultSIGSEGVSegmentation fault

Division by Zero

WindowsLinuxmacOSPythonJavaC/C++PHP
N/ASIGFPESIGFPEZeroDivisionErrorArithmeticExceptionSIGFPEE_WARNING
floating point exceptionfloating point exceptionZeroDivisionErrorArithmeticExceptionSIGFPEDivision by zero

Null Pointer / Reference Errors

WindowsLinuxmacOSPythonJavaC/C++PHP
0xc0000005SIGSEGVSIGSEGVAttributeErrorNullPointerExceptionSIGSEGVE_WARNING
STATUS_ACCESS_VIOLATIONsegmentation faultsegmentation fault‘NoneType’ has no attributenull pointer dereferenceSIGSEGVTrying to access property of non-object

Stack Overflow

WindowsLinuxmacOSPythonJavaC/C++PHP
0xc00000fdSIGSEGVSIGSEGVRecursionErrorStackOverflowErrorStack OverflowE_ERROR
STATUS_STACK_OVERFLOWsegmentation faultsegmentation faultmaximum recursion depth exceededstack overflowstack smashingAllowed stack size

Too Many Open Files

WindowsLinuxmacOSPythonJavaC/C++PHP
0x80070006errno-24 (EMFILE)-24 (tooManyOpenFilesErr)OSErrorN/Aerrno 24 (EMFILE)E_WARNING
ERROR_TOO_MANY_OPEN_FILESEMFILEtooManyOpenFilesErrToo many open filesEMFILEToo many open files

Connection Refused

WindowsLinuxmacOSPythonJavaC/C++PHP
0x8007274dECONNREFUSEDECONNREFUSEDConnectionRefusedErrorConnectExceptionECONNREFUSEDE_WARNING
WSAECONNREFUSEDECONNREFUSEDconnection refusedConnection refusedConnection refusedECONNREFUSEDConnection refused

Timeout Errors

WindowsLinuxmacOSPythonJavaC/C++PHP
0x800705b4ETIMEDOUTETIMEDOUTTimeoutErrorSocketTimeoutExceptionETIMEDOUTE_WARNING
ERROR_TIMEOUTETIMEDOUToperation timed outTimed outRead timed outETIMEDOUTConnection timed out

Device/Resource Busy

WindowsLinuxmacOSPythonJavaC/C++PHP
0x80070020errno-16 (EBUSY)-16 (devBusyErr)N/AN/Aerrno 16 (EBUSY)E_WARNING
ERROR_BUSYEBUSYdevBusyErrEBUSYDevice or resource busy

Broken Pipe

WindowsLinuxmacOSPythonJavaC/C++PHP
0x8007006derrno-32 (EPIPE)-32 (brokenPipeErr)BrokenPipeErrorN/Aerrno 32 (EPIPE)E_WARNING
ERROR_BROKEN_PIPEEPIPEbrokenPipeErrBroken pipeEPIPEBroken pipe

File Already Exists

WindowsLinuxmacOSPythonJavaC/C++PHP
0x800700b7errno-17 (EEXIST)-48 (dupFNErr)FileExistsErrorFileAlreadyExistsExceptionerrno 17 (EEXIST)E_WARNING
ERROR_ALREADY_EXISTSEEXISTdupFNErrFile existsFile already existsEEXISTFile already exists

Network Unreachable

WindowsLinuxmacOSPythonJavaC/C++PHP
0x80072751ENETUNREACHENETUNREACHConnectionErrorNoRouteToHostExceptionENETUNREACHE_WARNING
WSAENETUNREACHENETUNREACHnetwork is unreachableNetwork is unreachableNetwork is unreachableENETUNREACHNetwork unreachable

How to Use This Table

  1. Find your error in the system you’re working with
  2. Look across the row to find equivalent errors in other systems
  3. Click the link to go to the detailed error page with fixes
  4. Use the “Quick Fix” column for immediate solutions

Comments