Better error handling when the server returns a not successful response: Now the error object contains the server error string.