src/Leevel/Http/ApiResponse.php
public function notFound(?string $message = null, ?string $text = null): IResponse
    {
        return $this->error($message, static::HTTP_NOT_FOUND, $text);
    }
public function notFound(?string $message = null, ?string $text = null): IResponse
    {
        return $this->error($message, static::HTTP_NOT_FOUND, $text);
    }
未找到
用户发出的请求针对的是不存在的记录: 404.

@param string $message
@param string $text

@return $this