Go to Comments





How to get Http Status code number from HttpWebRequest and HttpWebResponse (200, 301, 404, 403)


Created: 15/03/2017 08:45:40 a.m.




Console.Write((int)response.StatusCode);

In this link you can find the codes: https://msdn.microsoft.com/en-us/library/system.net.httpstatuscode(v=vs.110).aspx




Comments: