title: Using PHP curl how does one get the response body for a 400 response
body: <p>The api I'm calling returns a json object of validation errors with the HTTP code 400. I implemented the client using PHP's curl library, but on error <code>curl_exec</code> returns false. How can I get the response body on error?</p>
  
  <p>Note that I am setting <code>curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);</code></p>