fix mailmap for Mike Friedman
Check for missing commands with error code constants

This uses constants over raw numbers in the code; it also prefers
a code over an error message in tests.