fixed to match interface
bug fixes from last commit, also added head request method to the rest
client, as well as the ability to return all response data (circumvents
the error handling)