What problem does it solve?
It helps you stop .NET APIs from returning inconsistent or leaky error responses by standardizing how validation, expected failures, and unexpected exceptions are represented to clients.
Core Features & Use Cases
- Result pattern for expected failures: model business/lookup outcomes (e.g., “order not found”, “validation failed”) without throwing exceptions.
- RFC 9457 ProblemDetails everywhere: consistently map failures to ProblemDetails with
type, title, status, detail, and optional errors.
- Global exception handling: capture unexpected crashes and convert them into safe ProblemDetails (with more detail in development only).
- FluentValidation at the boundary: validate request DTOs using FluentValidation, typically via endpoint filters, and return
ValidationProblem-style responses.
Quick Start
Load the error-handling skill when implementing API error contracts, request validation, or global exception handling so your endpoints return consistent RFC 9457 ProblemDetails responses.