awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

API error handling

Ranking updated Jun 30, 2026

For a library for handling API errors, the strongest matches are falconry/falcon (Falcon is a full Python web API framework, not), ehmicky/modern-errors (Modern Errors is a comprehensive error management library for) and actix/actix-web (Actix Web is a full-featured asynchronous web framework, not). twitchtv/twirp and ruby-grape/grape round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

Discover the best open-source libraries for API error handling. Compare top-rated tools by activity and features to find the best fit for your project.

API error handling

Find the best repos with AI.We'll search the best matching repositories with AI.
  • falconry/falconfalconry avatar

    falconry/falcon

    9,794View on GitHub↗

    Falcon is a minimalist Python web API framework and high-performance microservices framework. It serves as a resource-oriented API toolkit designed for building RESTful APIs and data plane services that prioritize low overhead, reliability, and scale. The framework implements an ASGI web server interface to handle both synchronous and asynchronous HTTP requests and WebSockets. It features a dedicated HTTP middleware system for intercepting network traffic and executing shared processing logic across multiple API endpoints. Its capability surface covers resource-based routing, HTTP specificat

    Falcon is a full Python web API framework, not a dedicated error handling library; while it includes middleware for error processing, it lacks explicit support for RFC 7807 and is not framework-agnostic, making it a neighbouring category rather than the targeted tool.

    PythonException MappersError Response Mappers
    View on GitHub↗9,794
  • ehmicky/modern-errorsehmicky avatar

    ehmicky/modern-errors

    1,482View on GitHub↗

    This library provides a comprehensive framework for managing errors in JavaScript and TypeScript applications. It enables the creation of structured, type-safe error hierarchies, allowing developers to define custom error classes that ensure consistent behavior and categorization across a codebase. The project distinguishes itself through a modular plugin architecture that allows for the extension of core error functionality, such as custom logging, serialization, and validation. It includes an exception normalization pipeline that converts non-standard or malformed errors into predictable in

    Modern Errors is a comprehensive error management library for JavaScript/TypeScript that allows you to define structured error hierarchies and apply modular plugins for logging or serialization, but it focuses on general application error handling rather than specifically providing HTTP API error responses with built-in RFC 7807 support or framework middleware for web servers.

    JavaScriptStructured Error ResponsesJSON Error Serialization
    View on GitHub↗1,482
  • actix/actix-webactix avatar

    actix/actix-web

    24,421View on GitHub↗

    Actix Web is an asynchronous web framework designed for building high-performance network services. It provides a foundation for processing concurrent requests through a non-blocking execution model, utilizing an actor-based concurrency system to manage lightweight processes and message passing. The framework includes a low-level networking layer that handles the parsing and serialization of HTTP traffic according to standard specifications. The framework distinguishes itself through a type-safe routing engine that enforces strict data types at compile time, ensuring that request parameters a

    Actix Web is a full-featured asynchronous web framework, not a dedicated error-handling library or middleware; it provides the infrastructure to build APIs but does not itself implement or standardize error response formatting or error-code mapping as the visitor seeks.

    RustError Mapping StrategiesError Response Mappers
    View on GitHub↗24,421
  • twitchtv/twirptwitchtv avatar

    twitchtv/twirp

    7,517View on GitHub↗

    Twirp is a Protocol Buffers RPC framework designed for implementing type-safe, distributed microservices communication over HTTP. It functions as a microservices communication framework and API code generator that produces strongly typed client stubs and server interfaces from schema definitions to eliminate manual network boilerplate. The framework ensures compatibility with existing web infrastructure by executing remote procedure calls over standard HTTP transport. It uses schema-driven contracts as a single source of truth to enable cross-language interoperability and decouple business lo

    Twirp is a Protocol Buffers RPC framework, not a dedicated error-handling library — while it includes structured error responses and middleware, its primary purpose is type-safe microservices communication over HTTP, which misaligns with the search for a tool focused specifically on standardizing API error handling.

    GoStructured Error ResponsesStructured Error Responses
    View on GitHub↗7,517
  • ruby-grape/graperuby-grape avatar

    ruby-grape/grape

    9,990View on GitHub↗

    Grape is a RESTful web service framework for Ruby designed for building structured APIs. It provides a declarative syntax for routing and parameter validation, allowing developers to map HTTP verbs to logic through a domain specific language. The framework is distinguished by its built-in support for service versioning, which can be managed via URL paths, custom headers, or request parameters. It also features a modular architecture that allows large services to be constructed by nesting smaller API definitions. The project covers comprehensive API lifecycle capabilities, including schema-dr

    Grape is a full RESTful API framework for Ruby, not a dedicated error-handling library; while it includes error response mapping and middleware pipelines, it is not the focused tool for standardizing error handling across frameworks that this search targets.

    RubyError Mapping StrategiesError Response MappersRequest Middleware
    View on GitHub↗9,990
  • gorilla/muxgorilla avatar

    gorilla/mux

    21,832View on GitHub↗

    This project is a request router and web framework for the Go programming language. It provides a toolkit for matching incoming HTTP network requests to specific handler functions by evaluating criteria such as URL paths, request methods, headers, and hostnames. The framework distinguishes itself through its flexible matching capabilities, which include support for regular expressions and dynamic variable extraction from URL segments. It allows developers to organize routes into logical hierarchies, share common path prefixes, and maintain a central registry of named routes to facilitate prog

    gorilla/mux is a request router and web framework for Go, not an error-handling library—it provides middleware chaining but does not itself offer structured error responses, RFC 7807 support, or error code mapping that this search requires.

    GoMiddlewareRequest Middleware
    View on GitHub↗21,832
  • json-api/json-apijson-api avatar

    json-api/json-api

    7,708View on GitHub↗

    JSON API is a set of industry standards for RESTful APIs that defines uniform protocols for resource serialization, error responses, and query parameters. It provides a specification for request and response payloads in JSON-based APIs to ensure consistency across endpoints. The specification focuses on reducing network requests through a structured resource serialization format and a standardized mechanism for embedding related resources into a single response. It utilizes a custom JSON media type for content negotiation and supports the definition of custom profiles to provide specialized i

    JSON API defines a specification for structured error responses that matches what you're looking for, but it is a standard rather than a ready-to-use middleware or library—you would still need to implement or find a concrete library that follows the spec.

    CSSStructured Error Responses
    View on GitHub↗7,708
  • sideway/joisideway avatar

    sideway/joi

    21,192View on GitHub↗

    Joi is a JavaScript data validation library used to define schemas that ensure the structure and data types of objects remain consistent. It functions as a schema-based validator and object schema definition tool, preventing invalid information from entering an application by checking data against predefined constraints and rules. The library employs a chainable fluent interface and a constraint-based validation engine to build complex validation pipelines. It utilizes recursive tree traversal to validate nested data structures and a type-coercion pipeline to transform input values into the t

    Joi is a data validation library for ensuring correct input structure, but it is not an error-handling middleware or library for producing structured API error responses, so it fits only as a possible component rather than the tool itself.

    JavaScriptError Mapping Strategies
    View on GitHub↗21,192
  • danielgtaylor/humadanielgtaylor avatar

    danielgtaylor/huma

    4,170View on GitHub↗

    Huma is an OpenAPI REST framework for Go designed for building HTTP services with automatic OpenAPI 3.1 specification generation and JSON Schema validation. It serves as a toolkit for developing REST and RPC APIs with typed inputs and outputs, deriving interactive documentation directly from the source code. The framework distinguishes itself by automating the synchronization between implementation and documentation. It uses a content-negotiation engine to manage multiple serialization formats via client headers and employs a JSON Schema input validator to automatically verify request paramet

    Huma is an OpenAPI REST framework for Go with built-in error definition and structured response support, but it's a complete web framework rather than a dedicated, framework-agnostic error handling middleware or library, so it doesn't squarely match a search for a standalone error-handling tool.

    GoRFC 7807 ImplementationsRequest Middleware
    View on GitHub↗4,170
  • tower-rs/towertower-rs avatar

    tower-rs/tower

    4,093View on GitHub↗

    Tower is a modular service abstraction layer for the Rust programming language, providing a framework for building asynchronous request-response pipelines. It serves as a set of core components for managing backpressure, balancing loads, and abstracting service discovery. The project distinguishes itself through a layer-based middleware composition model, allowing services to be wrapped in recursive chains of decorators. This enables the declarative application of cross-cutting concerns, such as timeouts, rate limiting, and retries, in a protocol-agnostic manner. The library covers a broad r

    Tower is a generic Rust middleware framework for composing request-response pipelines, but it does not provide error‑handling utilities, structured error responses, or RFC 7807 support itself — it is a building block you could use to build error‑handling middleware rather than a ready‑to‑use tool for standardizing API errors.

    RustMiddleware
    View on GitHub↗4,093
  • spring-attic/spring-mvc-showcasespring-attic avatar

    spring-attic/spring-mvc-showcase

    4,974View on GitHub↗

    This project is a showcase application and reference implementation for the Spring MVC framework. It serves as a demonstration of how to build web applications by separating business logic from user interfaces using a model-view-controller architectural pattern. The application provides examples of HTTP request handling, including the capture of request data, the processing of file uploads, and the generation of formatted HTTP responses. It implements REST API endpoints that map requests to handler methods and return data in formats such as JSON and XML. The project covers core web developme

    This is a reference application for Spring MVC that demonstrates exception-to-status-code mapping and other error-handling patterns, but it's a showcase, not a reusable library or middleware for structuring error handling across APIs.

    JavaException-to-Status Code Mappings
    View on GitHub↗4,974
  • labstack/echolabstack avatar

    labstack/echo

    32,451View on GitHub↗

    Echo is a high-performance, lightweight web framework for Go designed for building scalable RESTful APIs and web services. It provides a centralized environment for mapping network requests to handler functions, utilizing a fast radix-tree routing engine to ensure efficient request dispatching. The framework is built around a modular, middleware-centric pipeline that allows developers to execute reusable logic for cross-cutting concerns like authentication, logging, and security across the entire application. What distinguishes Echo is its focus on developer productivity through structured da

    Echo is a Go web framework that includes basic error recovery middleware, but it is not a dedicated or framework-agnostic error‑handling library with RFC 7807 support or structured error formatting; it handles errors only within its own middleware pipeline.

    GoMiddleware
    View on GitHub↗32,451
  • koajs/koakoajs avatar

    koajs/koa

    35,713View on GitHub↗

    Koa is a lightweight web framework for Node.js designed for building HTTP applications and servers. It functions as an asynchronous middleware engine that processes network requests through a sequence of functions sharing a common context. The framework distinguishes itself by using an onion-model middleware stack and promise-based flow control. This architecture allows requests to flow downstream and responses to flow back upstream through the same chain, enabling non-blocking request cycles and a modular approach to handling network traffic. The system provides high-level capabilities for

    Koa is a general-purpose web framework with a middleware engine, not a dedicated error handling library — it lacks RFC 7807 support, structured error utilities, or framework-agnostic error tools that this search is after.

    JavaScriptMiddlewareRequest Middleware
    View on GitHub↗35,713
  • charmbracelet/logcharmbracelet avatar

    charmbracelet/log

    3,121View on GitHub↗

    This is a structured logging library designed to produce logs using key-value pairs, severity levels, and machine-readable formats. It provides a toolkit for creating logs that are consistent for both human review and machine parsing. The project is distinguished by its focus on terminal visualization, using a styling system to apply colors and prefixes to log entries for improved readability in consoles. It also includes a specialized adapter to convert standard library log calls into structured events by inferring severity levels from message prefixes. The library manages metadata through

    This is a structured logging library, not a tool designed for structuring, standardizing, or simplifying API error responses. While logging can complement error handling, it does not provide middleware, error code mapping, or RFC 7807 problem detail formatting for APIs.

    GoLogging Integrations
    View on GitHub↗3,121
  • sanic-org/sanicsanic-org avatar

    sanic-org/sanic

    18,624View on GitHub↗

    Sanic is an asynchronous Python web framework designed for building high-performance APIs and services. It operates as a production-ready ASGI web server, utilizing a non-blocking event loop to handle concurrent requests and maximize throughput. The framework is built to support scalable architectures, offering built-in worker process management to distribute traffic across available CPU cores. What distinguishes Sanic is its focus on modularity and developer-centric tooling. It features a blueprint-based system for organizing complex applications into pluggable components, alongside a robust

    Sanic is an asynchronous Python web framework for building APIs, not a dedicated error handling library or middleware; it includes basic error handling capabilities but lacks the standardized error formats and framework-agnostic tools you are searching for.

    PythonMiddleware
    View on GitHub↗18,624
  • colinhacks/zodcolinhacks avatar

    colinhacks/zod

    43,036View on GitHub↗

    Zod is a TypeScript-first schema declaration and validation library designed to ensure end-to-end data integrity. It functions as a runtime type guard, allowing developers to define complex data structures through a declarative, chainable syntax. By using these schema definitions, the library automatically derives static TypeScript types, eliminating the need for manual type duplication and ensuring that runtime data matches expected application contracts. The library distinguishes itself through functional schema composition, which enables the creation of hierarchical structures by nesting a

    Zod is a TypeScript schema validation library, which can produce structured validation errors, but it is not an API error handling middleware or library—it lacks the core focus on standardizing error responses, RFC 7807 problem details, or middleware integration for API endpoints.

    TypeScriptValidation Error FormattersValidation Error Utilities
    View on GitHub↗43,036
  • yhirose/cpp-httplibyhirose avatar

    yhirose/cpp-httplib

    16,597View on GitHub↗

    This is a header-only C++ library that provides implementations for HTTP clients, HTTP servers, and a WebSocket framework. It allows for the creation of network services and the consumption of remote APIs without requiring a separate compilation step or external binary linking. The project features backend-agnostic TLS integration for secure HTTPS and WSS communication and employs a thread-pool model to process concurrent requests. It distinguishes itself with a full-duplex WebSocket state-machine and a middleware-based request pipeline that supports regular-expression path routing. The libr

    cpp-httplib is a general-purpose HTTP client/server library with middleware support and some error handling tags, but it is not a dedicated tool for structuring or standardizing API error responses—it lacks RFC 7807 support, framework-agnostic design, and specialized error code mapping.

    C++Request Middleware
    View on GitHub↗16,597
  • psf/requestspsf avatar

    psf/requests

    54,044View on GitHub↗

    Requests is a high-level HTTP client library designed to simplify web communication and API integration. It provides an intuitive, human-readable interface for performing standard network operations, including request execution, connection pooling, and stateful session management. By encapsulating raw network data into structured objects, the library automates the complexities of headers, cookies, and payload transmission. The library distinguishes itself through a modular transport adapter layer that allows for custom protocol handling and extensible authentication hooks. It supports a wide

    The "adjacent" verdict for the given context means that the repository is not exactly the tool being sought, but it is in a neighboring category or provides a component for building it. Requests is primarily an HTTP client library, not a server-side error handling middleware; however, it does include exception mapping and network error handling features that could be relevant in the broader error handling context.

    PythonHTTP ClientsHTTP Interaction FrameworksWeb API Integration
    View on GitHub↗54,044
  • digitallyinduced/ihpdigitallyinduced avatar

    digitallyinduced/ihp

    5,294View on GitHub↗

    ihp is a type-safe web framework and full-stack application orchestrator designed for PostgreSQL. It functions as a server-side rendering framework and a type-safe ORM that automatically generates record types from SQL schemas to ensure compile-time query validation. The platform distinguishes itself by verifying routing, database queries, and templates at compile time to prevent runtime crashes. It implements real-time web interfaces using WebSockets for instant data synchronization and employs server-driven hypermedia for partial DOM patching. The framework covers a broad range of integrat

    IHP is a full-stack Haskell web framework focused on compile-time safety and real-time interfaces, not a dedicated error-handling middleware or library; while it may include error overlays in development, it does not provide structured error responses, RFC 7807 support, or framework-agnostic error utilities.

    HaskellMiddlewareRequest Middleware
    View on GitHub↗5,294
  • microsoft/typespecmicrosoft avatar

    microsoft/typespec

    5,781View on GitHub↗

    TypeSpec is a language for defining cloud API shapes and generating OpenAPI, JSON Schema, and client/server code from a single source of truth. It functions as a protocol-agnostic API designer that models REST, gRPC, and other API protocols using a unified, extensible syntax, with a decorator-based metadata system for attaching metadata, validation rules, and lifecycle visibility to API models and operations. The compiler produces OpenAPI 3.0 specifications and other artifacts, and the tool supports declaring API versions and tracking changes to models, properties, and operations across releas

    TypeSpec is a language for defining API shapes and generating code, not a runtime tool for handling or standardizing error responses; it does not provide middleware, utilities, or error-format libraries as this search requires.

    JavaStructured Error Responses
    View on GitHub↗5,781
  • encode/django-rest-frameworkencode avatar

    encode/django-rest-framework

    30,083View on GitHub↗

    Django REST Framework is a toolkit for building standards-compliant web services that map complex data models to structured HTTP responses. It provides a modular architecture for handling the request lifecycle, including authentication, permission checks, and content negotiation. The framework is designed to facilitate the development of robust APIs by transforming complex data types into native formats and validating incoming request payloads against defined schemas. The project distinguishes itself through a highly modular, class-based design that allows developers to build complex views an

    Django REST Framework is a full-featured API framework for Django, not a dedicated error-handling library; it provides structured error responses but is tightly coupled to Django and lacks built-in RFC 7807 support, making it a broader tool than the focused error-handling middleware or utility this search targets.

    PythonRequest Middleware
    View on GitHub↗30,083
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
falconry/falcon9.8KPythonApache-2.0Jun 17, 2026
ehmicky/modern-errors1.5KJavaScriptMITJun 23, 2026
actix/actix-web24.4KRustapache-2.0Feb 19, 2026
twitchtv/twirp7.5KGoApache-2.0Aug 5, 2024
ruby-grape/grape10KRubyMITJun 23, 2026
gorilla/mux21.8KGoBSD-3-ClauseAug 15, 2024
json-api/json-api7.7KCSSCC0-1.0Mar 13, 2025
sideway/joi21.2KJavaScriptNOASSERTIONJun 12, 2026
danielgtaylor/huma4.2KGoMITJun 5, 2026
tower-rs/tower4.1KRustmitFeb 12, 2026

Related searches

  • an error handling library for Rust applications
  • API tooling
  • a framework for building REST APIs
  • a javascript library for making http requests
  • a mocking library for stubbing HTTP requests in tests
  • a load testing tool for APIs
  • an end-to-end type-safe API layer for TypeScript
  • a code generator that builds clients from OpenAPI specs