fixing improperly handled error coming back from registry server get_key_from_token endpoint