28 个仓库
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.
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.
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.
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.
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.
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.
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.
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.
🌳 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.
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.
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.
Micro 是一个极简的 Node.js Web 框架,专为创建轻量级、异步 HTTP 服务和 JSON API 而设计。它作为一个低占用空间的库,用于部署专注于高请求量和最小开销的异步处理程序。 该框架利用函数式请求和响应模型,将流量路由到作为主要入口点的单个导出的异步函数。它专注于处理传入的 JSON 请求并返回带有自动化错误处理的格式化响应。 核心功能包括用于 JSON、纯文本和二进制缓冲区的请求主体解析,以及自动 JSON 响应序列化。该系统还提供了拦截异常并将其映射到标准化 HTTP 状态码的机制。
Implements mechanisms to catch exceptions and automatically return appropriate HTTP status codes.
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.
Buffalo 是一个全面的 MVC Web 框架和全栈工具链,用于使用 Go 构建 Web 应用程序。它提供了一个结构化的开发环境,将模型、视图和控制器分离,并将 Web 框架与用于数据库模式和记录管理的专用对象关系映射(ORM)包装器集成在一起。 该项目通过一套用于引导项目结构、管理资产和构建生产就绪容器的开发工具脱颖而出。它具有复杂的路由系统,支持基于约定的 RESTful 资源生成、基于域的虚拟主机,以及用于一致内部链接的路由助手。 该框架涵盖了广泛的核心 Web 功能,包括基于中间件的请求管道、动态模板渲染和请求作用域的状态管理。它还包括对后台任务处理、会话管理、电子邮件发送和优雅服务器关闭的集成支持。
Implements mechanisms for aborting requests and returning standardized HTTP status codes.
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.
Intercepts API calls and returns custom HTTP error codes to test application error handling.
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.
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.
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.
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.
Wretch 是一个可链式的 HTTP 客户端库与 Fetch API 封装器,旨在简化网络请求配置、响应解析与错误处理。它作为网络请求管理器与中间件框架,用于管理 HTTP 调用的端到端生命周期。 该项目以用于请求配置的流畅接口与模块化扩展系统而著称。它利用可编程的响应解析器来自动化解析,并利用插件式架构为请求与响应对象添加新能力。 该库涵盖了广泛的运营能力,包括带有指数退避的自动请求重试、响应缓存与请求去重。它提供了用于动态负载序列化、响应模式验证的工具,以及用于全局数据转换与请求监控的中间件流水线。安全特性包括基础认证支持与自动令牌刷新。 该库支持自定义 fetch 实现,以确保在不同环境下的兼容性。
Transforms raw error responses into typed objects that include parsed bodies and status codes.