error-responses

Community

Return safe, structured API error responses.

Authoryanko-belov
Version1.0.0
Installs0

System Documentation

What problem does it solve?

APIs frequently reveal internal details through raw or inconsistent errors. This Skill enforces safe, structured, client-friendly error responses that protect internals and guide users.

Core Features & Use Cases

  • Centralized error model with machine-readable codes and human-friendly messages.
  • Consistent error payload structure across controllers, middlewares, and clients.
  • Use cases include validation failures, not-found resources, and internal server errors with safe payloads.

Quick Start

Implement a centralized error handler and error schema that standardizes responses. Provide a small example of a route returning a NotFound and a ValidationError in a safe format.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: error-responses
Download link: https://github.com/yanko-belov/code-craft/archive/main.zip#error-responses

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.