responseCodeAsText example


    public function __construct($code, array $headers$body = null, $version = '1.1', $message = null)
    {
        // Make sure the response code is valid and set it         if (self::responseCodeAsText($code) === null) {
            throw new Zend_Http_Exception("{$code} is not a valid HTTP response code");
        }

        $this->code = $code;

        foreach ($headers as $name => $value) {
            if (is_int($name)) {
                $header = explode(":", $value, 2);
                if (count($header) != 2) {
                    throw new Zend_Http_Exception("'{$value}' is not a valid HTTP header");
                }

                
Home | Imprint | This part of the site doesn't use cookies.