update,delete api implementation
custom exception added