Parses and classifies Reply.io API error codes and HTTP statuses. Reuse when integrating CRM email sequencing APIs.
// Source: https://github.com/corsairdev/corsair | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { CorsairErrorHandler } from 'corsair/core';
import { ApiError } from 'corsair/http';
import { ReplyioAPIError } from './client';
// Reply.io error conventions (docs: Errors use application/problem+json with a
// stable `code` in <resource>.<variant> format, e.g. "sequence.notFound"):
// - 401 Unauthorized with WWW-Authenticate: Bearer and an empty body.
// - 429 Too Many Requests with a Retry-After header (100 req/min,
// 3,000 req/hour per user).
// - 4xx business errors carry `code` slugs such as schedule.deleteRejected,
// schedule.forbidden, sequenceContact.notInS
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key