title: How to test the response code with Capybara + Selenium
body: <p>I have the following spec:</p>
  
  <pre><code>it "deletes post", :js =&gt; true do 
  ...
  ...
  page.status_code.should = '404'
  
  end 
  </code></pre>
  
  <p>The <code>page.status_code</code> line is giving me this error:</p>
  
  <pre><code>Capybara::NotSupportedByDriverError
  </code></pre>
  
  <p>How do I check the page's status code?</p>