protected function getCodeResponse($statusCode)
    {
        $this->checkParameters();

        /** @var ResponsesInterface $responses */
        $responses = $this->getIntegration()->getFromContainer(ResponsesInterface::class);
        $outputMediaType = $this->codecMatcher->getEncoderRegisteredMatchedType();

        return $responses->getResponse($statusCode, $outputMediaType, null, $this->supportedExtensions);
    }
protected function getCodeResponse($statusCode)
    {
        $this->checkParameters();

        /** @var ResponsesInterface $responses */
        $responses = $this->getIntegration()->getFromContainer(ResponsesInterface::class);
        $outputMediaType = $this->codecMatcher->getEncoderRegisteredMatchedType();

        return $responses->getResponse($statusCode, $outputMediaType, null, $this->supportedExtensions);
    }
protected function getCodeResponse ( $ statusCode ) { $ this -> checkParameters ( ) ; /** @var ResponsesInterface $responses */ $ responses = $ this -> getIntegration ( ) -> getFromContainer ( ResponsesInterface :: class ) ; $ outputMediaType = $ this -> codecMatcher -> getEncoderRegisteredMatchedType ( ) ; return $ responses -> getResponse ( $ statusCode , $ outputMediaType , null , $ this -> supportedExtensions ) ; }
Get response with HTTP code only.

@param $statusCode

@return Response
Get response with HTTP code only .