Fail with a more descriptive error if the server returns a malformed redirect