Skip to main content
All errors from the Veto API use the same response envelope:
code is a machine-readable string you can match against in code. message is a human-readable description of the problem.

Error codes

Rate limit errors

When you receive a 429, the response includes a Retry-After header with the number of seconds until the rate limit window resets:
Wait the indicated number of seconds before retrying.

SDK error handling

Node.js

The Veto Node.js SDK exposes three error classes:
  • VetoError — base class for all Veto errors. Has .code (string) and .statusCode (number).
  • UnauthorizedError — thrown on 401 responses. Extends VetoError.
  • RateLimitError — thrown on 429 responses. Extends VetoError. Has .retryAfterMs (milliseconds until reset).

Python