Api always return a ApiClientException When connect return a 4XX response