stock type D is blocked stock,
restricted stock (stock type E) is only possible in case of batch management, it is not that restrictive as blocked stock, e.g. you can rework but not sell while blocked stock is really blocked for everything.
A blocked batch can as well have the status restricted, but not every restricted batch is blocked stock.