Client: check server errors in download() and fetchString()
Currently the download()
and fetchString()
functions of the CAS client aren't checking for potential server errors.
This change makes it so that they throw an exception if the server returns an error, being consistent with the other client functions.