fix statusCode != 200 for put and delete + passing http response to the cb

* added http error handling for put and delete.
* let the client handle the http response