src/Leevel/Http/ApiResponse.php
public function error(?string $message, int $statusCode, ?string $text = null): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->setStatusCode($statusCode, $text);

        return $this->normalizeErrorMessage($message);
    }
public function error(?string $message, int $statusCode, ?string $text = null): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->setStatusCode($statusCode, $text);

        return $this->normalizeErrorMessage($message);
    }
错误请求
服务器不理解请求的语法: 400.

@param string $message
@param int    $statusCode
@param string $text
@param mixed  $statusCode

@return $this