Why do you hate it? Do you have other examples of codes that are
alphanumeric jumbles?
Not at the moment, but my memory is telling me that I *have* seen such things before. Anyway, SQLSTATEs are (a) part of the SQL standards, although private-use extensions are allowed, and (b) can be in a one-to-many relationship with db-specific numbers and ids. So I'm okay with them now as a string-valued key specific to DBs.
'name is vague, it tends to make me wonder whether it's an identifier
kind of name (symbol-with-dashes) or a title kind of name (human
readable string with capitalization). 'id and 'title are unambiguous in
that respect.
Good point. +1 for 'id.
'message is more appropriate for statuses than 'title
(unless the error message is a whole essay that needs its own title).
I would hope not!