Bug 2552: raise the error sent by the server if error code is not 404
Merge pull request #494 from Juniper/sb

Bug 2552: raise the error sent by the server if error code is not 404