title: Guzzle: handle 400 bad request
body: <p>I'm using Guzzle in Laravel 4 to return some data from another server, but I can't handle Error 400 bad request</p>
  
  <pre><code> [status code] 400 [reason phrase] Bad Request
  </code></pre>
  
  <p>using:</p>
  
  <pre><code>$client-&gt;get('http://www.example.com/path/'.$path,
              [
                  'allow_redirects' =&gt; true,
                  'timeout' =&gt; 2000
              ]);
  </code></pre>
  
  <p>how to solve it?
  thanks,</p>