Improve error status handling for SendMail/SmartReply/SmartForward
Use global status codes.