public function onKernelResponse(FilterResponseEvent $event)
    {
        if ($this->handleResponse && $this->http_code !== null) {
            $response = $event->getResponse();
            $response->setStatusCode($this->http_code, $this->http_status);
        }
    }
public function onKernelResponse(FilterResponseEvent $event)
    {
        if ($this->handleResponse && $this->http_code !== null) {
            $response = $event->getResponse();
            $response->setStatusCode($this->http_code, $this->http_status);
        }
    }
public function onKernelResponse ( FilterResponseEvent $ event ) { if ( $ this -> handleResponse && $ this -> http_code !== null ) { $ response = $ event -> getResponse ( ) ; $ response -> setStatusCode ( $ this -> http_code , $ this -> http_status ) ; } }
Rewrites the http code of the response

@param FilterResponseEvent $event FilterResponseEvent
@return void
Rewrites the http code of the response