Add undocumented error codes
Merge remote-tracking branch 'upstream/master'