Windows error code lookup
Enter a code from an error message, a log or an event, such as 0x80070005, 0xC000006D, 1603 or -2147024891, to see what Windows calls it. The page reads the number as each kind of Windows code and shows every reading that matches. It looks the code up in your browser.
Codes people look up
Select a code to look it up above. The descriptions are Microsoft's.
| Code | Read as | Name | Description |
|---|---|---|---|
| 0x80070005 | COM error code (HRESULT) | E_ | General access denied error |
| 0x80004005 | COM error code (HRESULT) | E_ | Unspecified error |
| 0x80070002 | System error code, inside the HRESULT | ERROR_ | The system cannot find the file specified. |
| 0x80070003 | System error code, inside the HRESULT | ERROR_ | The system cannot find the path specified. |
| 0x80070057 | COM error code (HRESULT) | E_ | One or more arguments are invalid |
| 0x8007000E | COM error code (HRESULT) | E_ | Ran out of memory |
| 0x80070020 | System error code, inside the HRESULT | ERROR_ | The process cannot access the file because it is being used by another process. |
| 0x800700B7 | System error code, inside the HRESULT | ERROR_ | Cannot create a file when that file already exists. |
| 0x80070422 | System error code, inside the HRESULT | ERROR_ | The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. |
| 0x800704C7 | System error code, inside the HRESULT | ERROR_ | The operation was canceled by the user. |
| 0x80070643 | System error code, inside the HRESULT | ERROR_ | Fatal error during installation. |
| 0x80070652 | System error code, inside the HRESULT | ERROR_ | Another installation is already in progress. Complete that installation before proceeding with this install. |
| 0x800706BA | System error code, inside the HRESULT | RPC_ | The RPC server is unavailable. |
| 0x80072EE2 | WinINet error, inside the HRESULT | ERROR_ | The request has timed out. |
| 0x80072EFD | WinINet error, inside the HRESULT | ERROR_ | The attempt to connect to the server failed. |
| 0x8024402C | Windows Update Agent code | WU_ | Same as ERROR_WINHTTP_NAME_NOT_RESOLVED - The proxy server or target server name cannot be resolved. |
| 0x80073712 | System error code, inside the HRESULT | ERROR_ | The component store has been corrupted. |
| 0x8000FFFF | COM error code (HRESULT) | E_ | Catastrophic failure |
| 0xC0000005 | NTSTATUS value, name only | STATUS_ | No description: the name is all Microsoft's header gives. |
| 0xC0000022 | NTSTATUS value, name only | STATUS_ | No description: the name is all Microsoft's header gives. |
| 0xC000006D | NTSTATUS value, name only | STATUS_ | No description: the name is all Microsoft's header gives. |
| 0xC000007B | NTSTATUS value, name only | STATUS_ | No description: the name is all Microsoft's header gives. |
| 0xC0000135 | NTSTATUS value, name only | STATUS_ | No description: the name is all Microsoft's header gives. |
| 5 | System error code | ERROR_ | Access is denied. |
| 1603 | System error code | ERROR_ | Fatal error during installation. |
| 1326 | System error code | ERROR_ | The user name or password is incorrect. |
| 0x50 | Bug check code | PAGE_ | No description: the name is all Microsoft's header gives. |
| 0x7E | Bug check code | SYSTEM_ | No description: the name is all Microsoft's header gives. |
| 0xD1 | Bug check code | DRIVER_ | No description: the name is all Microsoft's header gives. |
| 0x133 | Bug check code | DPC_ | No description: the name is all Microsoft's header gives. |
| 0xEF | Bug check code | CRITICAL_ | No description: the name is all Microsoft's header gives. |
| 0x124 | Bug check code | WHEA_ | No description: the name is all Microsoft's header gives. |
| 0xC004F074 | Windows activation error | The Software Protection Service reported that the computer could not be activated. No Key Management Service (KMS) could be contacted. Please see the Application Event Log for additional information. | |
| 0x800F081F | Windows Update error, with what to do | CBS_ | source for package or file not found, ResolveSource() unsuccessful. |
| 0x800F0922 | Windows Update error, with what to do | CBS_ | The July cumulative update failed to be installed on Windows Server 2016. |
How an HRESULT is built
An HRESULT is a 32-bit number. Written in hexadecimal, a failure starts with 8 or higher.
| Bits | Field | What it holds |
|---|---|---|
| 31 | Severity | 1 for a failure, 0 for success. |
| 30 | R | Reserved. |
| 29 | C | Customer bit: set in codes that are not Microsoft's. |
| 28 | N | Set when the HRESULT wraps an NTSTATUS value. |
| 16 to 27 | Facility | The part of Windows that defined the code, from the table of facility numbers below. |
| 0 to 15 | Code | The code itself. |
Two kinds of HRESULT carry another code inside them. Facility 7 (FACILITY_WIN32) wraps a system error code: Windows turns error 5, access denied, into 0x80070005 with HRESULT_FROM_WIN32, so the last four hexadecimal digits are the system error code. Bit 28 wraps an NTSTATUS value: HRESULT_FROM_NT turns 0xC000006D into 0xD000006D. The page reads both.
Windows reads the facility with ((hr >> 16) & 0x1FFF), so facility numbers above 2047, such as 2170 for DXGI, use bit 27 too.
How an NTSTATUS value is built
NTSTATUS values come from the Windows kernel and drivers, and from logon events such as 4625 and 4776.
| Bits | Field | What it holds |
|---|---|---|
| 30 and 31 | Severity | 0 success, 1 informational, 2 warning, 3 error. So Microsoft's error values start with C in hexadecimal. |
| 29 | C | Customer bit: set in values that are not Microsoft's. All of Microsoft's values have it clear. |
| 28 | N | Reserved and 0, so that setting it turns the value into an HRESULT. |
| 16 to 27 | Facility | From the second table of facility numbers below. |
| 0 to 15 | Code | The code itself. |
The kinds of code the page knows
11,576 codes in all. Where Microsoft's header names a code that its documentation does not describe, the page gives the name alone.
| Kind | Codes | Microsoft's list |
|---|---|---|
| System error code | 2,745 | System Error Codes |
| System error code, name only | 490 | winerror.h |
| WinINet error | 93 | Error Messages (Wininet.h) |
| WinHTTP error | 46 | Error Messages (Winhttp.h) |
| Network management error | 320 | Network Management Error Codes |
| Remote access error | 326 | Routing and Remote Access Error Codes |
| COM error code (HRESULT) | 2,669 | COM Error Codes |
| HRESULT, name only | 1,291 | winerror.h and vsserror.h |
| Windows Update Agent code | 93 | WUA Success and Error Codes, WUA Networking Error Codes |
| Task Scheduler code | 43 | Task Scheduler Error and Success Constants |
| NTSTATUS value, name only | 3,013 | ntstatus.h |
| Bug check code | 379 | Bug Check Code Reference |
| Windows activation error | 30 | Troubleshoot Windows activation error codes |
| Windows Update error, with what to do | 38 | Common Windows Update errors |
Facility numbers
HRESULT facilities
| Decimal | Hex | Name |
|---|---|---|
| 0 | 0x0 | FACILITY_NULL |
| 1 | 0x1 | FACILITY_RPC |
| 2 | 0x2 | FACILITY_DISPATCH |
| 3 | 0x3 | FACILITY_STORAGE |
| 4 | 0x4 | FACILITY_ITF |
| 7 | 0x7 | FACILITY_WIN32 |
| 8 | 0x8 | FACILITY_WINDOWS |
| 9 | 0x9 | FACILITY_SECURITY |
| 9 | 0x9 | FACILITY_SSPI |
| 10 | 0xA | FACILITY_CONTROL |
| 11 | 0xB | FACILITY_CERT |
| 12 | 0xC | FACILITY_INTERNET |
| 13 | 0xD | FACILITY_MEDIASERVER |
| 14 | 0xE | FACILITY_MSMQ |
| 15 | 0xF | FACILITY_SETUPAPI |
| 16 | 0x10 | FACILITY_SCARD |
| 17 | 0x11 | FACILITY_COMPLUS |
| 18 | 0x12 | FACILITY_AAF |
| 19 | 0x13 | FACILITY_URT |
| 20 | 0x14 | FACILITY_ACS |
| 21 | 0x15 | FACILITY_DPLAY |
| 22 | 0x16 | FACILITY_UMI |
| 23 | 0x17 | FACILITY_SXS |
| 24 | 0x18 | FACILITY_WINDOWS_CE |
| 25 | 0x19 | FACILITY_HTTP |
| 26 | 0x1A | FACILITY_USERMODE_COMMONLOG |
| 27 | 0x1B | FACILITY_WER |
| 31 | 0x1F | FACILITY_USERMODE_FILTER_MANAGER |
| 32 | 0x20 | FACILITY_BACKGROUNDCOPY |
| 33 | 0x21 | FACILITY_CONFIGURATION |
| 33 | 0x21 | FACILITY_WIA |
| 34 | 0x22 | FACILITY_STATE_MANAGEMENT |
| 35 | 0x23 | FACILITY_METADIRECTORY |
| 36 | 0x24 | FACILITY_WINDOWSUPDATE |
| 37 | 0x25 | FACILITY_DIRECTORYSERVICE |
| 38 | 0x26 | FACILITY_GRAPHICS |
| 39 | 0x27 | FACILITY_NAP |
| 39 | 0x27 | FACILITY_SHELL |
| 40 | 0x28 | FACILITY_TPM_SERVICES |
| 41 | 0x29 | FACILITY_TPM_SOFTWARE |
| 42 | 0x2A | FACILITY_UI |
| 43 | 0x2B | FACILITY_XAML |
| 44 | 0x2C | FACILITY_ACTION_QUEUE |
| 48 | 0x30 | FACILITY_PLA |
| 48 | 0x30 | FACILITY_WINDOWS_SETUP |
| 49 | 0x31 | FACILITY_FVE |
| 50 | 0x32 | FACILITY_FWP |
| 51 | 0x33 | FACILITY_WINRM |
| 52 | 0x34 | FACILITY_NDIS |
| 53 | 0x35 | FACILITY_USERMODE_HYPERVISOR |
| 54 | 0x36 | FACILITY_CMI |
| 55 | 0x37 | FACILITY_USERMODE_VIRTUALIZATION |
| 56 | 0x38 | FACILITY_USERMODE_VOLMGR |
| 57 | 0x39 | FACILITY_BCD |
| 58 | 0x3A | FACILITY_USERMODE_VHD |
| 59 | 0x3B | FACILITY_USERMODE_HNS |
| 60 | 0x3C | FACILITY_SDIAG |
| 61 | 0x3D | FACILITY_WEBSERVICES |
| 61 | 0x3D | FACILITY_WINPE |
| 62 | 0x3E | FACILITY_WPN |
| 63 | 0x3F | FACILITY_WINDOWS_STORE |
| 64 | 0x40 | FACILITY_INPUT |
| 65 | 0x41 | FACILITY_QUIC |
| 66 | 0x42 | FACILITY_EAP |
| 70 | 0x46 | FACILITY_IORING |
| 80 | 0x50 | FACILITY_WINDOWS_DEFENDER |
| 81 | 0x51 | FACILITY_OPC |
| 82 | 0x52 | FACILITY_XPS |
| 83 | 0x53 | FACILITY_RAS |
| 84 | 0x54 | FACILITY_MBN |
| 84 | 0x54 | FACILITY_POWERSHELL |
| 85 | 0x55 | FACILITY_EAS |
| 98 | 0x62 | FACILITY_P2P_INT |
| 99 | 0x63 | FACILITY_P2P |
| 100 | 0x64 | FACILITY_DAF |
| 101 | 0x65 | FACILITY_BLUETOOTH_ATT |
| 102 | 0x66 | FACILITY_AUDIO |
| 103 | 0x67 | FACILITY_STATEREPOSITORY |
| 109 | 0x6D | FACILITY_VISUALCPP |
| 112 | 0x70 | FACILITY_SCRIPT |
| 113 | 0x71 | FACILITY_PARSE |
| 120 | 0x78 | FACILITY_BLB |
| 121 | 0x79 | FACILITY_BLB_CLI |
| 122 | 0x7A | FACILITY_WSBAPP |
| 128 | 0x80 | FACILITY_BLBUI |
| 129 | 0x81 | FACILITY_USN |
| 130 | 0x82 | FACILITY_USERMODE_VOLSNAP |
| 131 | 0x83 | FACILITY_TIERING |
| 133 | 0x85 | FACILITY_WSB_ONLINE |
| 134 | 0x86 | FACILITY_ONLINE_ID |
| 135 | 0x87 | FACILITY_DEVICE_UPDATE_AGENT |
| 136 | 0x88 | FACILITY_DRVSERVICING |
| 153 | 0x99 | FACILITY_DLS |
| 160 | 0xA0 | FACILITY_SOS |
| 173 | 0xAD | FACILITY_OCP_UPDATE_AGENT |
| 176 | 0xB0 | FACILITY_DEBUGGERS |
| 208 | 0xD0 | FACILITY_DELIVERY_OPTIMIZATION |
| 231 | 0xE7 | FACILITY_USERMODE_SPACES |
| 232 | 0xE8 | FACILITY_USER_MODE_SECURITY_CORE |
| 234 | 0xEA | FACILITY_USERMODE_LICENSING |
| 256 | 0x100 | FACILITY_DMSERVER |
| 256 | 0x100 | FACILITY_RESTORE |
| 256 | 0x100 | FACILITY_SPP |
| 257 | 0x101 | FACILITY_DEPLOYMENT_SERVICES_SERVER |
| 258 | 0x102 | FACILITY_DEPLOYMENT_SERVICES_IMAGING |
| 259 | 0x103 | FACILITY_DEPLOYMENT_SERVICES_MANAGEMENT |
| 260 | 0x104 | FACILITY_DEPLOYMENT_SERVICES_UTIL |
| 261 | 0x105 | FACILITY_DEPLOYMENT_SERVICES_BINLSVC |
| 263 | 0x107 | FACILITY_DEPLOYMENT_SERVICES_PXE |
| 264 | 0x108 | FACILITY_DEPLOYMENT_SERVICES_TFTP |
| 272 | 0x110 | FACILITY_DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT |
| 278 | 0x116 | FACILITY_DEPLOYMENT_SERVICES_DRIVER_PROVISIONING |
| 289 | 0x121 | FACILITY_DEPLOYMENT_SERVICES_MULTICAST_SERVER |
| 290 | 0x122 | FACILITY_DEPLOYMENT_SERVICES_MULTICAST_CLIENT |
| 293 | 0x125 | FACILITY_DEPLOYMENT_SERVICES_CONTENT_PROVIDER |
| 296 | 0x128 | FACILITY_HSP_SERVICES |
| 297 | 0x129 | FACILITY_HSP_SOFTWARE |
| 305 | 0x131 | FACILITY_LINGUISTIC_SERVICES |
| 885 | 0x375 | FACILITY_WEB |
| 886 | 0x376 | FACILITY_WEB_SOCKET |
| 1094 | 0x446 | FACILITY_AUDIOSTREAMING |
| 1490 | 0x5D2 | FACILITY_TTD |
| 1536 | 0x600 | FACILITY_ACCELERATOR |
| 1793 | 0x701 | FACILITY_MOBILE |
| 1967 | 0x7AF | FACILITY_SQLITE |
| 1968 | 0x7B0 | FACILITY_SERVICE_FABRIC |
| 1989 | 0x7C5 | FACILITY_UTC |
| 1996 | 0x7CC | FACILITY_WMAAECMA |
| 2049 | 0x801 | FACILITY_WEP |
| 2050 | 0x802 | FACILITY_SYNCENGINE |
| 2168 | 0x878 | FACILITY_DIRECTMUSIC |
| 2169 | 0x879 | FACILITY_DIRECT3D10 |
| 2170 | 0x87A | FACILITY_DXGI |
| 2171 | 0x87B | FACILITY_DXGI_DDI |
| 2172 | 0x87C | FACILITY_DIRECT3D11 |
| 2173 | 0x87D | FACILITY_DIRECT3D11_DEBUG |
| 2174 | 0x87E | FACILITY_DIRECT3D12 |
| 2175 | 0x87F | FACILITY_DIRECT3D12_DEBUG |
| 2176 | 0x880 | FACILITY_DXCORE |
| 2177 | 0x881 | FACILITY_PRESENTATION |
| 2184 | 0x888 | FACILITY_LEAP |
| 2185 | 0x889 | FACILITY_AUDCLNT |
| 2192 | 0x890 | FACILITY_WINML |
| 2200 | 0x898 | FACILITY_WINCODEC_DWRITE_DWM |
| 2201 | 0x899 | FACILITY_DIRECT2D |
| 2304 | 0x900 | FACILITY_DEFRAG |
| 2305 | 0x901 | FACILITY_USERMODE_SDBUS |
| 2306 | 0x902 | FACILITY_JSCRIPT |
| 2339 | 0x923 | FACILITY_XBOX |
| 2340 | 0x924 | FACILITY_GAME |
| 2341 | 0x925 | FACILITY_USERMODE_UNIONFS |
| 2342 | 0x926 | FACILITY_USERMODE_PRM |
| 2343 | 0x927 | FACILITY_USERMODE_WIN_ACCEL |
| 2344 | 0x928 | FACILITY_PPF |
| 2561 | 0xA01 | FACILITY_PIDGENX |
| 2748 | 0xABC | FACILITY_PIX |
NTSTATUS facilities
| Decimal | Hex | Name |
|---|---|---|
| 1 | 0x1 | FACILITY_DEBUGGER |
| 2 | 0x2 | FACILITY_RPC_RUNTIME |
| 3 | 0x3 | FACILITY_RPC_STUBS |
| 4 | 0x4 | FACILITY_IO_ERROR_CODE |
| 6 | 0x6 | FACILITY_CODCLASS_ERROR_CODE |
| 7 | 0x7 | FACILITY_NTWIN32 |
| 8 | 0x8 | FACILITY_NTCERT |
| 9 | 0x9 | FACILITY_NTSSPI |
| 10 | 0xA | FACILITY_TERMINAL_SERVER |
| 16 | 0x10 | FACILITY_USB_ERROR_CODE |
| 17 | 0x11 | FACILITY_HID_ERROR_CODE |
| 18 | 0x12 | FACILITY_FIREWIRE_ERROR_CODE |
| 19 | 0x13 | FACILITY_CLUSTER_ERROR_CODE |
| 20 | 0x14 | FACILITY_ACPI_ERROR_CODE |
| 21 | 0x15 | FACILITY_SXS_ERROR_CODE |
| 25 | 0x19 | FACILITY_TRANSACTION |
| 26 | 0x1A | FACILITY_COMMONLOG |
| 27 | 0x1B | FACILITY_VIDEO |
| 28 | 0x1C | FACILITY_FILTER_MANAGER |
| 29 | 0x1D | FACILITY_MONITOR |
| 30 | 0x1E | FACILITY_GRAPHICS_KERNEL |
| 31 | 0x1F | FACILITY_CAMERA |
| 32 | 0x20 | FACILITY_DRIVER_FRAMEWORK |
| 33 | 0x21 | FACILITY_FVE_ERROR_CODE |
| 34 | 0x22 | FACILITY_FWP_ERROR_CODE |
| 35 | 0x23 | FACILITY_NDIS_ERROR_CODE |
| 36 | 0x24 | FACILITY_QUIC_ERROR_CODE |
| 41 | 0x29 | FACILITY_TPM |
| 42 | 0x2A | FACILITY_RTPM |
| 53 | 0x35 | FACILITY_HYPERVISOR |
| 54 | 0x36 | FACILITY_IPSEC |
| 55 | 0x37 | FACILITY_VIRTUALIZATION |
| 56 | 0x38 | FACILITY_VOLMGR |
| 57 | 0x39 | FACILITY_BCD_ERROR_CODE |
| 62 | 0x3E | FACILITY_WIN32K_NTUSER |
| 63 | 0x3F | FACILITY_WIN32K_NTGDI |
| 64 | 0x40 | FACILITY_RESUME_KEY_FILTER |
| 65 | 0x41 | FACILITY_RDBSS |
| 66 | 0x42 | FACILITY_BTH_ATT |
| 67 | 0x43 | FACILITY_SECUREBOOT |
| 68 | 0x44 | FACILITY_AUDIO_KERNEL |
| 69 | 0x45 | FACILITY_VSM |
| 70 | 0x46 | FACILITY_NT_IORING |
| 80 | 0x50 | FACILITY_VOLSNAP |
| 81 | 0x51 | FACILITY_SDBUS |
| 92 | 0x5C | FACILITY_SHARED_VHDX |
| 93 | 0x5D | FACILITY_SMB |
| 94 | 0x5E | FACILITY_XVS |
| 153 | 0x99 | FACILITY_INTERIX |
| 231 | 0xE7 | FACILITY_SPACES |
| 232 | 0xE8 | FACILITY_SECURITY_CORE |
| 233 | 0xE9 | FACILITY_SYSTEM_INTEGRITY |
| 234 | 0xEA | FACILITY_LICENSING |
| 235 | 0xEB | FACILITY_PLATFORM_MANIFEST |
| 236 | 0xEC | FACILITY_APP_EXEC |
| 237 | 0xED | FACILITY_UNIONFS |
| 238 | 0xEE | FACILITY_PLATFORM_RUNTIME_MECHANISM |
| 239 | 0xEF | FACILITY_WIN_ACCEL |
Sources
- The descriptions come from Microsoft's documentation, published under the Creative Commons Attribution 4.0 International licence: System Error Codes, COM Error Codes, Error Messages (Wininet.h) and (Winhttp.h), Network Management Error Codes, Routing and Remote Access Error Codes, WUA Success and Error Codes, WUA Networking Error Codes, Task Scheduler Error and Success Constants, and Bug Check Code Reference. Only the names, numbers and descriptions are kept; punctuation is written in plain ASCII.
- Names that only the headers have, and the facility numbers: winerror.h, vsserror.h and ntstatus.h, from Microsoft's windows-rs under the MIT licence. Where the documentation and the header give a name different numbers, the page follows the header.
- The layout of HRESULT and NTSTATUS values: Microsoft's documentation of HRESULT_FROM_WIN32, HRESULT_FROM_NT, HRESULT_FACILITY and HRESULT_CODE, Structure of COM Error Codes, Defining New NTSTATUS Values, and the open specification [MS-ERREF].
- Windows activation and common Windows Update errors: Microsoft's support articles Troubleshoot Windows activation error codes and Common Windows Update errors, from Microsoft's repository SupportArticles-docs at commit bcf1399 (21 Nov 2026), under the Creative Commons Attribution 4.0 International licence.
More Windows tools
-
Robocopy command builder
Build a robocopy command line, paste one to see what each switch does, and decode its exit codes.
-
Msiexec silent install builder
Build install, uninstall and repair commands and look up MSI exit codes.
-
PowerShell EncodedCommand decoder
Read the script inside an encoded PowerShell command, layer by layer, or encode one.
-
.reg file value decoder
hex(2), hex(7), hex(b) and dword values of a .reg file as text and numbers, and a value written as .reg lines.
-
Certificate decoder
Read a certificate, a chain or a request: names, dates, thumbprint, template and account SID.
-
Access mask decoder
Read an access mask such as 0x1200A9 or -1610612736 as file, registry or Active Directory rights.
-
icacls explainer and command builder
Read icacls output such as (OI)(CI)(RX) in plain words, or build commands to grant, deny and remove rights.
-
KMS client keys and slmgr commands
Get the KMS client setup key (GVLK) of a Windows or Windows Server edition and the slmgr commands to activate it.
-
File hash checker
Work out the SHA-256, SHA-1, SHA-512 or MD5 hash of a file in your browser and compare it with the publisher's.
-
File type from its first bytes
What a file is by its first bytes, not its name: PDF, ZIP, Office, EXE or DLL with its CPU and bitness.
-
Zone.Identifier reader
The Mark of the Web on a downloaded file: its zone and address, and the commands that show and remove it.
-
Windows and IANA time zone names
Eastern Standard Time to America/New_York or America/Toronto and back, with tzutil, PowerShell and timedatectl.