Toolverse
All skills

handling-api-errors

by jeremylongshore

Implement standardized error handling with proper HTTP status codes and error responses.\nUse when implementing standardized error handling.\nTrigger with phrases like \

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Backend
Views
1

About this skill

Implement standardized error handling with proper HTTP status codes and error responses.\nUse when implementing standardized error handling.\nTrigger with phrases like \

How to use

  1. Zainstaluj skill w swoim projekcie Claude Code lub Codex, upewniając się, że masz dostęp do narzędzi Read, Write, Edit, Grep, Glob i Bash z uprawnieniami api:error-*.

  2. Wyzwól skill frazami takimi jak "add error handling", "standardize errors" lub "implement error responses" w kontekście swojego API.

  3. Skill przeskanuje istniejący kod za pomocą Grep, aby znaleźć bloki try/catch, middleware błędów i handlery wyjątków, identyfikując niespójne formaty odpowiedzi błędów na różnych endpointach.

  4. Zdefiniuj ustandaryzowaną kopertę odpowiedzi błędu zgodnie z RFC 7807, zawierającą: type (URI identyfikujący typ błędu), title (czytelny dla człowieka opis), status (kod HTTP), detail (szczegółowe wyjaśnienie) i instance (ścieżka żądania).

  5. Utwórz typizowane klasy błędów dla każdej kategorii: ValidationError (400), AuthenticationError (401), AuthorizationError (403), NotFoundError (404), ConflictError (409) i RateLimitError (429).

  6. Implementuj centralizowane middleware błędów, które przechwytuje wyjątki, mapuje je na odpowiednie kody statusu, loguje zdarzenia błędów z ID korelacji i wysyła dane do serwisu monitorowania (Sentry, Bugsnag, Rollbar).

Related skills

fastapi-pro

by sickn33

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

Backend
54128

context-optimizer

by openclaw

Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs

Backend
2964

architecture-decision-records

by wshobson

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

Backend
29130

himalaya

by openclaw

CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).

Backend
35108

postgresql-psql

by timelessco

Comprehensive guide for PostgreSQL psql - the interactive terminal client for PostgreSQL. Use when connecting to PostgreSQL databases, executing queries, managing databases/tables, configuring connection options, formatting output, writing scripts, managing transactions, and

Backend
34173

supabase-developer

by daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

Backend
78170