如上所示,如果我的url部分不存在,这个要怎么要处理,应该是在客户端就要判断出来,怎么做,求赐教!!!
判断响应的状态码
var response = await _httpClient.PostAsync(url, httpContent); if (response.StatusCode == HttpStatusCode.NotFound) { //... }