Zapier · sdk · fg-0382

Zapier z.request throws on every 4xx before your code can read the error body

If you see ResponseError thrown from z.request for a 4xx status, the cause and the fix for Zapier are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
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

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun