Modified the error handling to catch non-xml errors, like privilege-related ones.
Merge pull request #60 from Galithil/fix_http_error

Modified the error handling to catch non-xml errors, like privilege-related ones.