if (res.status >= 400) {
            throw new CustomError(
                JSON.stringify(res.error, null, 2),
                `HTTP STATUS: ${res.status} - ${res.message || defaultError}`,
            );