fixing IdClient, error responses were not being picked up