From the command line, use the following syntax:

NET HELPMSG [error number]

where [error number] is the error you wish to identify. For example:

NET HELPMSG 5

returns:

"Access is denied."

Internal errors do not apply. This includes third party applications returning their own error codes or complex services that maintain their own documented error codes. For Windows Installer (MSI engine) errors, click here.