return 400 bad request if one of the CRUD operations fail

Change-Id: Ib1db10d51ec403befb0403ae088b4cc24a332744