Don't export errorCodeName map, improve docs