Universal handling of error, info, and success messages