title: Ember Data creates local record on GET that returns 404
body: <p>When I request a single resource that returns a 404 (or 403 for that matter) Ember Data is creating a local record.</p>
  
  <p>For example, I load my app from scratch at <code>/items/123</code>. The adapter does a request for <code>GET /items/123</code> which results in a 404 but now I have an <code>item</code> record in my local store with <code>id=123</code>. All attributes are <code>undefined</code> expect where the model defines default values.</p>
  
  <p>Also, all model flags are <code>false</code> except <code>isValid</code> which is <code>true</code>.</p>
  
  <p>Is this excepted behaviour? It seems strange that the local record gets created even though the server is saying that it doesn't exist (or that the user is not allowed to see it).</p>
  
  <h2>Details</h2>
  
  <p>I'm running Ember <em>1.8.1</em> and Ember Data <em>1.0.0-beta.11</em>.</p>
  
  <p>Here's what I have for Routes—pretty basic stuff:</p>
  
  <pre><code>// itemsRoute, TOP LEVEL
  model: function() {
    return this.store.find('item');
  }
  
  
  // itemRoute, CHILD LEVEL
  model: function(params) {
    return this.store.find('item', params.item_id); // &lt;-- this returns 404
  },
  actions: {
      error: function(err) {
        this.replaceWith('items'); // jump out to main list view
        return true; // ensure error bubbles up
      }
  }
  </code></pre>
  
  <p>The rejection in the <code>model</code> hook is working because the <code>error</code> action is triggered and I'm redirected out the top level <code>/items</code> view. But I still end up with a local record for an <code>item</code> that doesn't exist.</p>