1. When we edit (Referred record) and try to inactivate, error message should be "Record referred can not be Inactive".
In current scenario, Error message is like "Record referred can not be updated".

2.  When we edit (Referred record) and try to Delete, error message should be "Record referred can not be Deleted".
      In current scenario, Error message is like "Record referred can not be Inactive".

I have attached the image FYI.

Do the needful for all the screens which you have created.