@email-service/email-service
Version:
email-service is a versatile npm package designed to simplify the integration and standardization of email communications across multiple Email Service Providers (ESPs).
12 lines (11 loc) • 471 B
TypeScript
import { ESPStandardizedError } from "../../types/error.type.js";
/**
* Resend API error codes — the `name` field returned by Resend in the body
* on non-2xx responses. Reference: https://resend.com/docs/api-reference/errors
*
* Resend renvoie toujours un JSON du type `{ statusCode, name, message }`
* où `name` est un slug snake_case (ex: `validation_error`, `invalid_api_key`).
*/
export declare const errorCode: {
[key: string]: ESPStandardizedError;
};