/**
  * Sends the specified HTTP status immediately.
  *
  * NOTE: This method only supports web requests and will throw an exception if used with other request types.
  *
  * @param integer $statusCode The HTTP status code
  * @param string $statusMessage A custom HTTP status message
  * @param string $content Body content which further explains the status
  * @throws \F3\FLOW3\MVC\Exception\UnsupportedRequestTypeException If the request is not a web request
  * @throws \F3\FLOW3\MVC\Exception\StopActionException
  * @author Robert Lemke <*****@*****.**>
  * @api
  */
 protected function throwStatus($statusCode, $statusMessage = NULL, $content = NULL)
 {
     if (!$this->request instanceof \F3\FLOW3\MVC\Web\Request) {
         throw new \F3\FLOW3\MVC\Exception\UnsupportedRequestTypeException('throwStatus() only supports web requests.', 1220539739);
     }
     $this->response->setStatus($statusCode, $statusMessage);
     if ($content === NULL) {
         $content = $this->response->getStatus();
     }
     $this->response->setContent($content);
     throw new \F3\FLOW3\MVC\Exception\StopActionException();
 }