title: How can I test errors like 400 , 403 , 500 in asp.net?
body: <p>How can I test my <code>customErrors statusCode</code> 403,400 and 500 in asp.net web applications ??</p>
  
  <p><strong>Web.config</strong></p>
  
  <pre><code>&lt;customErrors mode="On" redirectMode="ResponseRewrite"&gt;
    &lt;error statusCode="404" redirect="404error.aspx" /&gt;
    &lt;error statusCode="403" redirect="403error.aspx" /&gt;
    &lt;error statusCode="400" redirect="400error.aspx" /&gt;
    &lt;error statusCode="500" redirect="500error.aspx" /&gt;
  &lt;/customErrors&gt;
  </code></pre>
  
  <p>I tested 404 error by editng url and creating a false page response on click etc , I dont know how to test other statusCodes.! so, How can I test customErrors ? <br>
  Am a beginner, so sorry for the silly question..</p>