Convert MsgHeaders errors to MessageError type.