MCPcopy Create free account
hub / github.com/PIKACHUIM/CFWorkerACME / parseErrorResponse

Function parseErrorResponse

frontend/src/utils/certDownload.tsx:31–38  ·  view source on GitHub ↗
(res: Response)

Source from the content-addressed store, hash-verified

29}
30
31async function parseErrorResponse(res: Response): Promise<string> {
32 try {
33 const data = await res.json();
34 return data?.texts || data?.message || `HTTP ${res.status}`;
35 } catch {
36 return `HTTP ${res.status}`;
37 }
38}
39
40/** 下载证书 ZIP */
41export async function downloadCertZip(uuid: string): Promise<void> {

Callers 2

downloadCertZipFunction · 0.85
downloadCertPfxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected