Note that the NOTARY working group has already been over this ground
in nauseating details in the E-mail context, and the result is
(partially) found in draft-ietf-notary-status-03.txt; a more detailed,
but not fully flexible error code system.
Harald A