error handling revamped

1)WebHDFSError exception added
2) 'response' object is not returned anymore but checked for errors