title: jQuery .get error response function?
body: <p>Thanks to StackOverflow, I managed to get the following code working perfectly, but I have a follow up question.</p>
  
  <pre><code>$.get('http://example.com/page/2/', function(data){ 
    $(data).find('#reviews .card').appendTo('#reviews');
  });
  </code></pre>
  
  <p>This code above enabled my site to fetch a second page of articles with a Load More button in WordPress. However when the site runs out of pages/results, I'm running into a small issue. The load more button remains in place. It will keep trying to fetch data even if no pages are remaining.</p>
  
  <p>How can I tweak this command so that I can show a visual response if the <code>.get</code> request fails or is a (404) not found page for instance?</p>
  
  <p>If someone could help me out with a simple example of even an <code>alert("woops!");</code> that would be awesome!</p>
  
  <p>Thanks!</p>