These codes are in the 10.2 help but not in the current help for Desktop or Pro. They seem to be in the help somewhere, but they are hard to find by search.
Why these lists: using the codes with the AddIDMessage method is better than just reporting text messages -- because it links your Python Geoprocessing tool validation errors and tool errors directly to Esri's help information. This makes a tool work well with a wider audience, as Esri translates the error codes for use in other language environments.
Here's a script I used to generate these lists with arcpy:
<SPAN class="keyword token">import</SPAN> sys
<SPAN class="keyword token">import</SPAN> arcpy
<SPAN class="keyword token">for</SPAN> k <SPAN class="keyword token">in</SPAN> range<SPAN class="punctuation token">(</SPAN><SPAN class="number token">1000000</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">try</SPAN><SPAN class="punctuation token">:</SPAN>
dsc <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>GetIDMessage<SPAN class="punctuation token">(</SPAN>k<SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">if</SPAN> dsc<SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"{:6d} {}"</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>k<SPAN class="punctuation token">,</SPAN> dsc<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">except</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="keyword token">pass</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>Where is the list of geoprocessing error codes?