Add getEndpoints method to ServiceClient

Missed this in the other PR, but we should handle 404 here.