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