Yes, we should devise a convention for error reporting, both in the response and in a log file.  Unless a convention already exists?