- Symptom
- ResponseError thrown from z.request for a 4xx statusCustom error parsing after z.request never runsUpgrading an old integration to core 10 or later changes error messages
- Cause
- Since core 10.0.0 z.request calls throwForStatus on every response of 400 or more before returning it, unless skipThrowForStatus is set.
- Fix
- Set skipThrowForStatus on requests where you need the body, then throw a z.errors.Error with a readable message.
- Apply
const res = await z.request({ url, method: 'POST', body, skipThrowForStatus: true }); if (res.status >= 400) throw new z.errors.Error(res.json.message, 'ApiError', res.status);- Affected
- zapier-platform-core 10.0.0 and later
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders