2 个仓库
Error responses containing both machine-readable codes and human-readable messages.
Distinct from Machine-Readable Error Codes: Distinct from Machine-Readable Error Codes: focuses on the inclusion of human-readable messages alongside codes, not just the codes themselves.
Explore 2 awesome GitHub repositories matching software engineering & architecture · Structured Error Responses. Refine with filters or upvote what's useful.
Twirp 是一个 Protocol Buffers RPC 框架,旨在实现基于 HTTP 的类型安全、分布式微服务通信。它作为一个微服务通信框架和 API 代码生成器,从模式定义中生成强类型的客户端存根和服务器接口,以消除手动网络样板代码。 该框架通过在标准 HTTP 传输上执行远程过程调用,确保与现有 Web 基础设施的兼容性。它使用模式驱动的契约作为单一事实来源,以实现跨语言互操作性并将业务逻辑与网络传输解耦。 该系统涵盖了几个核心能力领域,包括接口驱动的路由、支持 JSON 和二进制的多格式数据序列化,以及用于横切关注点的请求生命周期中间件。它还提供了一个标准化的错误映射系统,将服务故障转换为机器可读的代码,并包括用于客户端兼容性验证的工具。
Sends structured error responses containing both machine-readable codes and human-readable descriptive messages.
GraphQL-Ruby is a Ruby library for building GraphQL APIs with a strongly typed schema and a dedicated query execution engine. It provides a comprehensive framework for mapping application objects to a formal type system, enabling structured data fetching through defined resolvers. The project distinguishes itself with advanced performance and delivery mechanisms, including a data loader for batching and caching to prevent N+1 query patterns. It supports high-performance data delivery through incremental response streaming, deferred query responses, and parallel data fetching using fibers. Add
Attaches structured error responses containing machine-readable codes and custom metadata to the response JSON.