awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

28 个仓库

Awesome GitHub RepositoriesHTTP Error Handling

Mechanisms for aborting requests and returning status codes.

Distinguishing note: No candidates provided; fits under web development.

Explore 28 awesome GitHub repositories matching web development · HTTP Error Handling. Refine with filters or upvote what's useful.

Awesome HTTP Error Handling GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • mzabriskie/axiosmzabriskie 的头像

    mzabriskie/axios

    109,096在 GitHub 上查看↗

    Axios is a promise-based HTTP client used to make asynchronous network requests in both browser and Node.js environments. It functions as a multi-environment network adapter that abstracts the transport layer to ensure consistent behavior across different runtimes. The project distinguishes itself through a request lifecycle management system that allows for the cancellation of active requests, the setting of timeouts, and the monitoring of upload and download transfer progress. It includes a mechanism for intercepting network traffic, enabling the transformation of outgoing requests and inco

    Rejects requests based on status codes and provides detailed error objects for debugging.

    JavaScript
    在 GitHub 上查看↗109,096
  • axios/axiosaxios 的头像

    axios/axios

    109,077在 GitHub 上查看↗

    Axios is an isomorphic, promise-based HTTP client designed for making asynchronous network requests across different JavaScript execution environments, including the browser and Node.js. It functions as a JSON API client that serializes JavaScript objects into JSON and parses server responses into structured data. The project features a system for managing reusable client instances with shared configurations, such as base URLs and default settings. It includes a mechanism for intercepting outgoing requests and incoming responses globally, allowing data to be transformed before it reaches the

    Implements logic to reject responses outside the successful range and return corresponding HTTP status codes.

    JavaScripthacktoberfesthttp-clientjavascript
    在 GitHub 上查看↗109,077
  • koajs/koakoajs 的头像

    koajs/koa

    35,713在 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

    Allows throwing errors with specific status codes and metadata to generate appropriate HTTP error responses.

    JavaScriptkoa
    在 GitHub 上查看↗35,713
  • vapor/vaporvapor 的头像

    vapor/vapor

    26,138在 GitHub 上查看↗

    Vapor is a comprehensive server-side web framework designed for building scalable, high-performance applications and APIs in Swift. It provides a non-blocking, event-loop-based runtime that manages concurrent task processing, background job queues, and asynchronous request handling. The framework is built around a dependency injection container that manages the lifecycle and resolution of services, configurations, and database connections throughout the request pipeline. The framework distinguishes itself through a protocol-oriented design that emphasizes type safety across all layers of the

    Aborts HTTP requests by throwing errors to return specific status codes to clients.

    Swiftframeworkhttphttp2
    在 GitHub 上查看↗26,138
  • kataras/iriskataras 的头像

    kataras/iris

    25,582在 GitHub 上查看↗

    Iris is a high-performance web framework and API toolkit for the Go programming language. It provides the infrastructure necessary to build HTTP/2 web applications, REST APIs, and MVC-based websites. The project distinguishes itself through a flexible architectural model that supports multiple isolated application instances within a single process and allows for binary-embedded asset loading to eliminate external filesystem dependencies. It features dynamic router hot-reloading and a pluggable view engine for rendering dynamic HTML content. The framework covers a broad range of capabilities,

    Provides custom logic and response bodies for handling specific HTTP status codes.

    Go
    在 GitHub 上查看↗25,582
  • sanic-org/sanicsanic-org 的头像

    sanic-org/sanic

    18,624在 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

    Interrupts request execution to return specific HTTP status codes and error messages to the client.

    Pythonapi-serverasgiasyncio
    在 GitHub 上查看↗18,624
  • elysiajs/elysiaelysiajs 的头像

    elysiajs/elysia

    18,531在 GitHub 上查看↗

    Elysia is a high-performance TypeScript web framework designed for building type-safe backend services. It provides a modular, plugin-based architecture that allows developers to compose server logic, middleware, and validation schemas into scalable application instances. By leveraging native web standards, the framework ensures portability across diverse JavaScript runtimes, including Node.js, Deno, and various edge computing environments. The framework distinguishes itself through its focus on end-to-end type safety, automatically synchronizing request and response definitions between the s

    Configures error handling to return structured objects or throw exceptions for non-success status codes.

    TypeScriptbunframeworkhttp
    在 GitHub 上查看↗18,531
  • sindresorhus/kysindresorhus 的头像

    sindresorhus/ky

    16,943在 GitHub 上查看↗

    🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API

    Ky controls how non-2xx status codes are handled with selective error throwing and retry logic for failed requests.

    TypeScriptfetchhttp-clienthttp-request
    在 GitHub 上查看↗16,943
  • forwardemail/superagentforwardemail 的头像

    forwardemail/superagent

    16,649在 GitHub 上查看↗

    Superagent is an isomorphic JavaScript HTTP client for sending network requests and processing responses across both Node.js and web browser environments. It provides a fluent request builder that uses a chainable interface to construct complex network requests with custom headers, query strings, and bodies. The library functions as a runtime-agnostic request adapter, allowing a single codebase to work consistently across different environments. It includes specialized capabilities such as an HTTP/2 client for forcing the HTTP/2 protocol and a Node.js agent for managing Unix socket connection

    Provides capabilities to interpret specific HTTP status codes as errors and define custom success criteria.

    JavaScript
    在 GitHub 上查看↗16,649
  • revel/revelrevel 的头像

    revel/revel

    13,224在 GitHub 上查看↗

    Revel is a full-stack web framework and toolkit for building applications with the Go language. It implements a model-view-controller architecture to separate business logic from user interface rendering, providing a comprehensive system for routing, parameter binding, and session management. The project distinguishes itself with a high-productivity development environment featuring automatic code compilation and hot-reloading, which refreshes the application state and templates upon file changes without requiring manual restarts. It also employs reflection-based parameter binding to automati

    Provides mechanisms for rendering specific error pages based on HTTP status codes and request formats.

    Go
    在 GitHub 上查看↗13,224
  • zeit/microzeit 的头像

    zeit/micro

    10,619在 GitHub 上查看↗

    Micro 是一个极简的 Node.js Web 框架,专为创建轻量级、异步 HTTP 服务和 JSON API 而设计。它作为一个低占用空间的库,用于部署专注于高请求量和最小开销的异步处理程序。 该框架利用函数式请求和响应模型,将流量路由到作为主要入口点的单个导出的异步函数。它专注于处理传入的 JSON 请求并返回带有自动化错误处理的格式化响应。 核心功能包括用于 JSON、纯文本和二进制缓冲区的请求主体解析,以及自动 JSON 响应序列化。该系统还提供了拦截异常并将其映射到标准化 HTTP 状态码的机制。

    Implements mechanisms to catch exceptions and automatically return appropriate HTTP status codes.

    TypeScript
    在 GitHub 上查看↗10,619
  • node-fetch/node-fetchnode-fetch 的头像

    node-fetch/node-fetch

    8,857在 GitHub 上查看↗

    node-fetch is a promise-based HTTP client library that provides a lightweight implementation of the Fetch API for the Node.js runtime. It serves as a network interface for performing asynchronous HTTP requests, handling server communication, and managing headers. The library utilizes a promise-based request lifecycle to wrap network calls, ensuring asynchronous behavior. It incorporates stream-based handling for both requests and responses to process large payloads efficiently without overloading system memory. Its capabilities cover a broad range of network communication tasks, including th

    Implements mechanisms for identifying client or server errors via HTTP status codes and operational exception catching.

    JavaScriptfetchfetch-apihacktoberfest
    在 GitHub 上查看↗8,857
  • gobuffalo/buffalogobuffalo 的头像

    gobuffalo/buffalo

    8,392在 GitHub 上查看↗

    Buffalo 是一个全面的 MVC Web 框架和全栈工具链,用于使用 Go 构建 Web 应用程序。它提供了一个结构化的开发环境,将模型、视图和控制器分离,并将 Web 框架与用于数据库模式和记录管理的专用对象关系映射(ORM)包装器集成在一起。 该项目通过一套用于引导项目结构、管理资产和构建生产就绪容器的开发工具脱颖而出。它具有复杂的路由系统,支持基于约定的 RESTful 资源生成、基于域的虚拟主机,以及用于一致内部链接的路由助手。 该框架涵盖了广泛的核心 Web 功能,包括基于中间件的请求管道、动态模板渲染和请求作用域的状态管理。它还包括对后台任务处理、会话管理、电子邮件发送和优雅服务器关闭的集成支持。

    Implements mechanisms for aborting requests and returning standardized HTTP status codes.

    Go
    在 GitHub 上查看↗8,392
  • answerdotai/fasthtmlAnswerDotAI 的头像

    AnswerDotAI/fasthtml

    6,846在 GitHub 上查看↗

    FastHTML is a full-stack Python web framework designed for building interactive web applications using pure Python. It functions as an HTMX integration framework and a Python HTML domain-specific language, allowing developers to generate HTML structures using native objects and functions instead of external templating files. The framework is distinguished by its native support for real-time bidirectional communication via WebSockets and Server-Sent Events, enabling server-side updates to be pushed to the browser without full page reloads. It further integrates identity management through OAut

    Provides mechanisms for aborting requests and returning custom HTTP status codes.

    Jupyter Notebook
    在 GitHub 上查看↗6,846
  • requestly/requestlyrequestly 的头像

    requestly/requestly

    6,341在 GitHub 上查看↗

    Intercepts API calls and returns custom HTTP error codes to test application error handling.

    TypeScriptapiapi-clientapi-mock
    在 GitHub 上查看↗6,341
  • stefanprodan/podinfostefanprodan 的头像

    stefanprodan/podinfo

    5,925在 GitHub 上查看↗

    Podinfo is a Go-based microservice template designed for Kubernetes, providing a standard pattern for building and testing containerised applications. It exposes REST endpoints for health checks, version information, and configuration, and supports environment-driven configuration for containerised deployment. The project distinguishes itself with built-in capabilities for resilience testing, including fault injection middleware that can inject random errors, latency spikes, or status code mutations. It also offers JWT token-based authentication for stateless request validation, Prometheus me

    Triggers configurable error responses and latency spikes to test resilience and observability tooling.

    Gocuelange2e-testinggitops
    在 GitHub 上查看↗5,925
  • cri-o/cri-ocri-o 的头像

    cri-o/cri-o

    5,629在 GitHub 上查看↗

    CRI-O is an open-source container runtime that implements the Kubernetes Container Runtime Interface (CRI) to manage container images, pods, and containers on cluster nodes using OCI-compatible runtimes. It serves as a node-level container manager that handles image pulling, container lifecycle, and resource monitoring for Kubernetes clusters, running containers according to the Open Container Initiative specifications. The runtime distinguishes itself through live configuration reloading that applies changes to runtime definitions, registry mirrors, and TLS certificates without restarting th

    Prevents superfluous response.WriteHeader errors in the HTTP endpoint.

    Go
    在 GitHub 上查看↗5,629
  • h3js/h3h3js 的头像

    h3js/h3

    5,353在 GitHub 上查看↗

    Hono 是一个极简的 JavaScript HTTP 框架,旨在跨多个运行时(包括 Node.js、边缘运行时和无服务器平台)构建 Web 服务器。它作为一个跨运行时 Web 服务器和 Web 标准 API 包装器,将各种运行时的请求和响应对象标准化为标准的 Web API 签名。 该项目作为 HTTP 中间件编排器和请求处理器,利用基于中间件的请求管道和分层路由挂载来创建模块化服务器结构。它通过一个运行时无关的事件包装器脱颖而出,确保无论部署环境如何,行为都保持一致。 该框架涵盖了广泛的功能,包括带有动态参数捕获的 HTTP 请求路由、实时 WebSocket 通信,以及 CORS 管理和基本身份验证等全面的安全措施。它还提供了通过 Cookie 进行会话管理、静态资产服务以及通过请求代理和 URL 重定向进行流量管理的实用程序。 该项目使用 TypeScript 实现。

    Throws structured errors to terminate requests with specific status codes and JSON payloads.

    TypeScript
    在 GitHub 上查看↗5,353
  • unjs/ofetchunjs 的头像

    unjs/ofetch

    5,316在 GitHub 上查看↗

    ofetch is an HTTP client built on the native fetch API that adds automatic JSON serialization, request/response interceptors, configurable retry, and timeout handling. It provides descriptive error objects for non-OK responses and automatically parses response bodies based on their content type. The client supports creating pre-configured instances with preset base URLs, headers, and default options, enabling consistent configuration across a project. It offers full TypeScript type inference for response data and request payloads, and allows extending request options with custom properties wh

    Provides descriptive error objects containing the parsed response body for failed HTTP requests.

    TypeScript
    在 GitHub 上查看↗5,316
  • elbywan/wretchelbywan 的头像

    elbywan/wretch

    5,174在 GitHub 上查看↗

    Wretch 是一个可链式的 HTTP 客户端库与 Fetch API 封装器,旨在简化网络请求配置、响应解析与错误处理。它作为网络请求管理器与中间件框架,用于管理 HTTP 调用的端到端生命周期。 该项目以用于请求配置的流畅接口与模块化扩展系统而著称。它利用可编程的响应解析器来自动化解析,并利用插件式架构为请求与响应对象添加新能力。 该库涵盖了广泛的运营能力,包括带有指数退避的自动请求重试、响应缓存与请求去重。它提供了用于动态负载序列化、响应模式验证的工具,以及用于全局数据转换与请求监控的中间件流水线。安全特性包括基础认证支持与自动令牌刷新。 该库支持自定义 fetch 实现,以确保在不同环境下的兼容性。

    Transforms raw error responses into typed objects that include parsed bodies and status codes.

    TypeScript
    在 GitHub 上查看↗5,174
上一个12下一个
  1. Home
  2. Web Development
  3. HTTP Error Handling

探索子标签

  • Descriptive HTTP Error Responses1 个子标签Throws errors that include the parsed response body and status code for non-OK HTTP responses. **Distinct from HTTP Error Handling:** Distinct from HTTP Error Handling: specifically provides parsed error response bodies and status codes, not just request abortion or status codes.
  • Error SimulatorsTools that intercept API calls and return custom HTTP error status codes to test error handling. **Distinct from HTTP Error Handling:** Distinct from HTTP Error Handling: focuses on simulating errors for testing rather than handling real errors.
  • Network Error IdentificationDifferentiating between various types of network failures, such as timeouts versus manual cancellations. **Distinct from HTTP Error Handling:** Focuses on error type identification (type guards) rather than general abortion or status codes
  • Selective Status Code FilteringControls which non-2xx HTTP status codes trigger an error, allowing per-status-code opt-in or opt-out. **Distinct from HTTP Error Handling:** Distinct from HTTP Error Handling: adds per-status-code filtering control, not just generic error throwing for all non-2xx responses.