npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

whatsapp-cloud-api-error-corpus

v1.0.0

Published

Meta WhatsApp Cloud API error codes with the handling decision each one implies: retry, suppress the contact, switch to a template, or raise an account-level alert.

Readme

WhatsApp Cloud API error corpus

17 Meta WhatsApp Cloud API error codes with the handling decision each one implies — not just what the code means, but what a sender should actually do with it.

Every WhatsApp vendor publishes a page explaining what an error code means. We could not find one that publishes what to do with it, which is the part that costs money to learn.

The reason this exists

130429, 131048 and 131056 are throughput caps. Meta returns them as HTTP 4xx, not 429.

A client implementing the ordinary rule — 4xx is a client error, do not retry; 429 and 5xx are transient — will permanently fail every message caught by a cap that would have cleared on its own within the hour. On a broadcast that silently discards the tail while the front half delivers, so it reads as a partial-delivery bug rather than a rate limit. Nothing in the response body says "cap".

The full write-up.

Install

npm i whatsapp-cloud-api-error-corpus
import { findCode, isRetryable, RATE_LIMIT_CODES } from 'whatsapp-cloud-api-error-corpus';

isRetryable(131056);        // true  — pair rate limit, arrives as 400
isRetryable(132001);        // false — template does not exist
isRetryable(999999);        // undefined — not documented, decide for yourself
findCode(190).handling;     // { accountLevel: true, ... }

Or fetch it directly, no install, CORS open:

curl https://www.tryklaros.com/whatsapp-api-errors.json

The codes

| Code | HTTP | Meaning | Handling | |---|---|---|---| | 100 | 400 | Invalid parameter | fail | | 190 | 401 | Access token expired or invalid | account | | 130429 | 400 | Rate limit hit | retry, cap | | 131008 | 400 | Required parameter missing | fail | | 131009 | 400 | Parameter value not valid | fail | | 131026 | 400 | Message undeliverable | suppress | | 131030 | 400 | Recipient not in allowed list | fail | | 131047 | 400 | Re-engagement message required | template | | 131048 | 400 | Spam rate limit hit | retry, cap | | 131049 | 400 | Per-user marketing cap reached | fail | | 131051 | 400 | Unsupported message type | template | | 131056 | 400 | Pair rate limit hit | retry, cap | | 132000 | 400 | Template parameter count mismatch | fail | | 132001 | 400 | Template does not exist | fail | | 132005 | 400 | Template hydrated text too long | fail | | 132007 | 400 | Template format or character policy violation | fail | | 133010 | 400 | Sending number not registered | account |

fail means permanent for that message: fix the request, do not retry it unchanged.

How this is maintained

The handling flags are generated, not hand-written. They come from running the same classifyWaError function that runs on Klaros's production send path, against a synthetic response for each code. The dataset therefore cannot describe behaviour the software does not have.

This repository is built output. It is regenerated from source and pushed; edits made here are overwritten. Corrections are welcome as issues, and they get fixed at the source.

Verified against Meta Graph API v25.0.

Licence

CC-BY-4.0. Use it freely, including commercially. Attribution to Klaros is appreciated and required by the licence.

Klaros is an independent product and is not affiliated with, endorsed by, or sponsored by Meta. WhatsApp is a trademark of Meta Platforms, Inc.