Atachment downloading: choose HTTP-Errorcode depending on the server error.