Add method to return all headers of RestResponse
Add logging for exception
Log the exception too
Merge pull request #498 from bhariharan/unstable

Add method to return all headers of RestResponse