User61956409 posted
Hi Guhananth,
I am using post method. I use var st=new httpclient().postasync(url,content);
When service is down it says one or more error.
I need to say server is not responding message as shown in postman.
If you'd like to catch the exception and display "server is not responding" message in your application, please use try-catch statement with your code logic.
If you want to display specific message when the service is unavailable, you can check the response status code like below.
if (st.StatusCode== HttpStatusCode.ServiceUnavailable)
{
//code logic here
}
Besides, please do not post similar/same questions in multi threads. Thanks for your understanding.
With Regards,
Fei Han