Add convenience method for looking up error codes

Don't ever look at that spec. Ever. Ugh.