src/Hive/Hive.php
protected function createHttpException($code, $message = null)
    {
        if ($code == 404) {
            $message = 'Entity not found';
        }

        $exception = new HttpException($message, $code);
        return $exception;
    }
protected function createHttpException($code, $message = null)
    {
        if ($code == 404) {
            $message = 'Entity not found';
        }

        $exception = new HttpException($message, $code);
        return $exception;
    }
protected function createHttpException ( $ code , $ message = null ) { if ( $ code == 404 ) { $ message = 'Entity not found' ; } $ exception = new HttpException ( $ message , $ code ) ; return $ exception ; }
Helper method for creating HTTP exceptions

@param int $code
@param string $message
@return HttpException
Helper method for creating HTTP exceptions