Scalr\Api\Rest\Application::halt PHP Method

halt() public method

Stops application immediately
public halt ( number $status, string $message = '' )
$status number HTTP response status code
$message string optional The response message
    public function halt($status, $message = '')
    {
        $this->response->setStatus($status);
        $this->response->setBody($message);
        $this->stop();
    }