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 a429, the response includes a Retry-After header with the number of seconds until the rate limit window resets:
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 on401responses. ExtendsVetoError.RateLimitError— thrown on429responses. ExtendsVetoError. Has.retryAfterMs(milliseconds until reset).