title: Rails: Render Json Status Problems
body: <p>When I </p>
  
  <pre><code>  render json: {
      error: "No such user; check the submitted email address",
      status: 400
    }
  </code></pre>
  
  <p>and then do my tests and check for</p>
  
  <pre><code>response.code
  </code></pre>
  
  <p>I get 200 rather than 400</p>
  
  <p>I'm sure the answer to this absurdly simple, but I've been looking for an hour and cannot seem to get this working. I could just parse the Json and then check the status code...but isn't there a way to get response.code to return the status? I understand that technically it was a success and I assume that's why the response.code is returning 200, but I was using Jbuilder before where I could directly impact the code returned. </p>