Neos\Flow\Mvc\Controller\AbstractController::throwStatus PHP Method

throwStatus() protected method

NOTE: This method only supports web requests and will throw an exception if used with other request types.
protected throwStatus ( integer $statusCode, string $statusMessage = null, string $content = null )
$statusCode integer The HTTP status code
$statusMessage string A custom HTTP status message
$content string Body content which further explains the status
    protected function throwStatus($statusCode, $statusMessage = null, $content = null)
    {
        $this->response->setStatus($statusCode, $statusMessage);
        if ($content === null) {
            $content = $this->response->getStatus();
        }
        $this->response->setContent($content);
        throw new StopActionException();
    }