title: How do i send a "forbidden" response in my Web API 2 solution?
body: <p>I am making a web api to work with a legacy system. This web api should work in the same way as the old one. The security is to send a security token along with each call. This means that i need to check the token before serving data. I have a method like this:</p>
  
  <pre><code>public List&lt;User&gt; Get(string id, string securityToken)
          {
              //ValidateToken(securityToken);
              return userRepository.LoadAll();
          }
  </code></pre>
  
  <p>And in my method i would like the validateToken() method to return a "Forbidden" httpresponse if i cant validate it. How do i go around doing this?</p>