Zend_Http_Response::__construct
HTTP response constructor
In most cases, you would use Zend_Http_Response::fromString to parse an HTTP response string and create a new Zend_Http_Response object. NOTE: The constructor no longer accepts nulls or empty values for the code and headers and will throw an exception if the passed values do not form a valid HTTP responses. If no message is passed, the message will be guessed according to the response code.
Signature
public function __construct(int
$code,
array
$headers,
[string
$body = NULL,
[string
$version = '1.1',
[string
$message = NULL]]] )
Parameters
$code
— int- Response code (200, 404, ...)
$headers
— array- Headers array
$body
— string- Response body
$version
— string- HTTP version
$message
— string- Response code as text