Checking for error messages

The TRS request can return any of several types of error messages. Some messages are written to the error log at TRS, and others are returned to the client.