if (!response.ok) { const errorJson = await response.json(); // 👈 KEEP STRUCTURE throw errorJson; // 👈 THROW THE OBJECT, NOT A STRING } __ __