phpzend-frameworkzend-http-client

How do I get the http response/server code from each request in Zend Framework?


Using the Zend Framework Http client, how do I get the http response/server code from each request? I am getting the body just fine, but the response code would be nice too.


Solution

  • Found the answer:

    $response->getStatus();