Bring some type sanity to HttpApiClient