kernel/private/rest/classes/status/response.php
public function process( ezcMvcResponseWriter $writer )
    {
        if ( $writer instanceof ezcMvcHttpResponseWriter )
        {
            $writer->headers["HTTP/1.1 " . $this->code] = self::$statusCodes[$this->code];
            $writer->headers = $this->headers + $writer->headers;
        }

        if ( $this->message !== null )
        {
            $writer->headers['Content-Type'] = 'application/json; charset=UTF-8';
            $writer->response->body = json_encode( $this->message );
        }
    }
public function process( ezcMvcResponseWriter $writer )
    {
        if ( $writer instanceof ezcMvcHttpResponseWriter )
        {
            $writer->headers["HTTP/1.1 " . $this->code] = self::$statusCodes[$this->code];
            $writer->headers = $this->headers + $writer->headers;
        }

        if ( $this->message !== null )
        {
            $writer->headers['Content-Type'] = 'application/json; charset=UTF-8';
            $writer->response->body = json_encode( $this->message );
        }
    }
public function process ( ezcMvcResponseWriter $ writer ) { if ( $ writer instanceof ezcMvcHttpResponseWriter ) { $ writer -> headers [ "HTTP/1.1 " . $ this -> code ] = self :: $ statusCodes [ $ this -> code ] ; $ writer -> headers = $ this -> headers + $ writer -> headers ; } if ( $ this -> message !== null ) { $ writer -> headers [ 'Content-Type' ] = 'application/json; charset=UTF-8' ; $ writer -> response -> body = json_encode ( $ this -> message ) ; } }
This method is called by the response writers to process the data
contained in the status objects.

The process method it responsible for undertaking the proper action
depending on which response writer is used.

@param ezcMvcResponseWriter $writer
This method is called by the response writers to process the data contained in the status objects .