Added msg status codes.
Revised message enum.
Plain error set function.