Record<string, string>
hc
async (res) => { switch (res.status) { case 500: throw new errors.ParseError(await res.text()) case 200: return res.json() case 404: default: throw new errors.NotFoundError(await res.text()) } }