protected function makeHtmlResponse($statusCode)
    {
        $view = $this->getView();

        if ($statusCode !== SymfonyResponse::HTTP_OK) {
            $view->withErrors($this->getErrorBagForStatusCode($statusCode));
        }

        return new IlluminateHtmlResponse($view, $statusCode);
    }
protected function makeHtmlResponse($statusCode)
    {
        $view = $this->getView();

        if ($statusCode !== SymfonyResponse::HTTP_OK) {
            $view->withErrors($this->getErrorBagForStatusCode($statusCode));
        }

        return new IlluminateHtmlResponse($view, $statusCode);
    }
protected function makeHtmlResponse ( $ statusCode ) { $ view = $ this -> getView ( ) ; if ( $ statusCode !== SymfonyResponse :: HTTP_OK ) { $ view -> withErrors ( $ this -> getErrorBagForStatusCode ( $ statusCode ) ) ; } return new IlluminateHtmlResponse ( $ view , $ statusCode ) ; }
Make a web response.

@param $statusCode

@return \Illuminate\Http\Response
Make a web response .