feiniaojin/graceful-response
Spring Boot接口响应处理解决方案,提供统一返回值封装、全局异常处理、自定义异常错误码、参数校验增强、断言增强等功能 observed · 2026-08-28
Health v2 · maintenance only
29/100
- Activity 13
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1753
- days_rel: 726
- days_push: 523
- n_releases_24m: 1
Adoption not part of the score
1253 stars · 174 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Graceful Response is a Spring Boot library that elegantly handles API response processing, including unified response body wrapping, global exception handling, error code population, and exception message internationalization. It reduces boilerplate in controllers by automating response encapsulation and exception-to-response mapping.
Use cases
- wrap all Spring Boot REST responses in a unified format
- handle global exceptions with consistent error codes
- assign custom error codes to parameter validation failures
- map external third-party exceptions to error codes via annotations
- return proper HTTP status codes for RESTful error responses
- define error code enums instead of many exception classes
- exclude certain endpoints from response wrapping
When to choose
- you are building Spring Boot REST APIs and want consistent response envelopes
- you want to eliminate repetitive try-catch and response wrapping code in controllers
- you need centralized exception handling with error codes and i18n messages
- you use Spring Boot 2.x or 3.x and want drop-in response handling
When to avoid
- you are not using the Spring Boot stack
- your project requires fully custom per-endpoint response formats with no wrapping
- you already have a mature in-house response/exception handling framework
Facets
library · maturity active
middleware error-handling api-framework internationalization backend web-development apis developer-tools jvm spring-boot unified-response global-exception-handler error-codes restful parameter-validation assertion-enhancement spring
1 source
- readme: https://github.com/feiniaojin/graceful-response · fetched 2026-08-28 · b20d1dd2358b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| feiniaojin/graceful-response | main | 29 |
For agents
markdown · JSON · MCP: product_card(name="feiniaojin/graceful-response")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem