skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

venice-errors

Error handling, retries, and API status codes

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/veniceai/skills --skill venice-errors

Overview

What This Skill Does

Error handling, retries, and API status codes

Application

When to use this Skill

Documentation

Show Skills.md file

Venice errors & retries

Every Venice endpoint returns one of four error shapes. Knowing which shape you got tells you how to react.

Error body shapes

1. StandardError — simple message

The default shape for 4xx/5xx. Emitted when there's nothing structured to surface.

{ "error": "Unauthorized" }

2. DetailedError — Zod validation failure

Used for some 400 responses on malformed request bodies. When present, details is a Zod format() tree (_errors recursively keyed by field) alongside a flat issues array. Many 400s are plain StandardError without details — always handle both.

{
  "error": "Invalid request",
  "details": {
    "_errors": [],
    "messages": { "_errors": ["Field is required"] }
  },
  "issues": [
    { "code": "invalid_type", "path": ["messages"], "message": "Field is required" }
  ]
}
Lines 1 - 30 of 204

Recommendations

Explore other random skills

All skillsMy patterns