const response = await fetchImpl(prmUrl, { method: 'GET', headers });
if (response.status !== 200) {
try {
errorText = await response.text();
} catch {
errorText = response.statusText;
}
throw new Error(`Failed to fetch resource metadata from ${prmUrl}: ${response.status} ${errorText}`);
oauth.ts
}
const body = await response.json();