src/Leevel/Router/ResponseFactory.php
public function apiBadRequest(?string $message = null, ?string $text = null): ApiResponse
    {
        return $this->createApiResponse()->badRequest($message, $text);
    }
public function apiBadRequest(?string $message = null, ?string $text = null): ApiResponse
    {
        return $this->createApiResponse()->badRequest($message, $text);
    }
错误请求
服务器不理解请求的语法: 400.

@param string $message
@param string $text

@return \Leevel\Http\ApiResponse