public function getDatabaseInfo($name = null)
    {
        $response = $this->httpClient->request('GET', '/'.($name ? urlencode($name) : $this->databaseName));

        if ($response->status != 200) {
            throw HTTPException::fromResponse('/'.urlencode($name), $response);
        }

        return $response->body;
    }