Merge Response handling for DELETE and PUT methods

Completed implementation and checked with sample projects. I am unaware of how to write JUnit tests for this. I also believe there's no need to write testcases as its just refactoring code.