# OSError errno mapping: OSError(2)->FileNotFoundError, 13->PermissionError, 17->FileExistsError, 32->BrokenPipeError, 10061->ConnectionRefusedError, 22/111/110->OSError (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/oserror-errno-mapping-oserror-2-filenotfounderror-13-permissionerror-17-fileexistserror-32-11a693e1e170
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, oserror, windows

On Windows, constructing OSError(111,'x') and OSError(110,'x') stayed plain OSError. IOError, EnvironmentError, WindowsError, socket.error, select.error all `is OSError`.
