What is appropriate for error messages in some software might not be appropriate in others. Think web servers vs compilers vs word processors, etc. What is appropriate depends on a lot of factors such as the expected users of the software and what level of the stack the software operates in. In this case I'm not convinced that a standard would be helpful.