title: VueJS HTTP request error 500 Handling
body: <p>I am having this problem where I make HTTP Request to the API and in case of error ( specially error 500) the JS just breaks or goes into infinite loop and I should close the window and re-open the page. What I need is a message to pop up and in very generic way explain what happened. How should I handle this kind of error any ideas? </p>
  
  <p>Example Request:</p>
  
  <pre><code>this.$http.get('people', { params }).then(({ data }) =&gt; {
  
              this.setFetching({
                  fetching: false
              })
          })
  </code></pre>