return http response object

Change-Id: Ia13c28fa60bc55d562010a3bf1c173cefaa84509
Reviewed-on: http://review.couchbase.org/35030
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>