title: how to handle http request error in blade?
body: <p>I am getting an HTTP request in my controller like this:</p>
  <pre class="lang-php prettyprint-override"><code>try {
      $cards = $client = Http::acceptJson()-&gt;get('www.my.local', $request-&gt;input());
      $response = $client-&gt;json();
  
      if ($client-&gt;clientError()) {
          throw new HttpException(400, $error['errors'][0]['detail'] ?? 'Server busy');
      }
  
      return view('card::cards.index')
          -&gt;with([
              'items' =&gt; $cards['data'],
              'meta' =&gt; $cards['meta'],
          ]);
  } catch (\Exception $exception) {
      return back()-&gt;withErrors($exception-&gt;getMessage())-&gt;withInput();
  }
  </code></pre>
  <p>The error response:</p>
  <pre class="lang-php prettyprint-override"><code>[ 
     &quot;error&quot; =&gt; &quot;validate error&quot;,
     &quot;fields&quot; =&gt; [
        &quot;id&quot; =&gt; &quot;init&quot;,
        ......
     ]
  ]
  </code></pre>
  <p>And somethings like this:</p>
  <pre class="lang-php prettyprint-override"><code>[ 
      &quot;error&quot; =&gt; &quot;server error&quot;
  ]
  </code></pre>
  <p>I want to show all of the errors array in my blade but I can't.</p>