title: how to catch response and display the exception handle in back-end in angular
body: <p>i am trying to catch the response and display in the browser when data is not found but i didn't got idea how to do it when response is in array.</p>
  <p>In the postman response is in following way:
  [
  {
  &quot;responseStatus&quot;: &quot;No record found!!&quot;,
  &quot;responseCode&quot;: &quot;0&quot;
  }
  ]
  i tried to catch and display in the browser but not worked. i tried this way:</p>
  <pre><code> if (response.responseCode == &quot;0&quot;) {
          Swal.fire({
            icon:&quot;warning&quot;,
            title: 'Data Not Exists!',
            confirmButtonColor: 'green',
          })
        }
  </code></pre>
  <p>How to catch response and display in browser when response given is in array form like :[
  {
  &quot;responseStatus&quot;: &quot;No record found!!&quot;,
  &quot;responseCode&quot;: &quot;0&quot;
  }
  ]</p>
  <p>Thank you in advance</p>