implemented return code for CRUD responses