c#: System.Web.HttpResponse class not available in intellisense
<p>So I'm writing a program in C# Visual Studio 2013. At the top of my code, among my usings, I have:</p>

<pre><code>using System.Web;
</code></pre>

<p>But when I try to use the line:</p>

<pre><code> HttpResponse httpResp = (HttpResponse)response;
</code></pre>

<p>then Intellisense says there is no HttpResponse class, in spite of the fact that HttpResponse is part of the System.Web namespace according to this page: <a href="https://msdn.microsoft.com/en-us/library/system.web.httpresponse(v=vs.110).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/system.web.httpresponse(v=vs.110).aspx</a></p>

<p>Furthermore it doesn't give me any options as to what else I could import that would make that class available. What am I doing wrong here? Is HttpResponse deprecated? If it is, is there a different way to get the status code of an http response. </p>