Skip to content

Commit 770986b

Browse files
authored
Merge pull request #22 from RAprogramm/codex/find-professional-qualifications-for-yly4shit
docs: sync changelog and README for error mappings
2 parents 30fdd0a + 6ee010c commit 770986b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ All notable changes to this project will be documented in this file.
99
- `AppError::log` now includes the stable `code` field alongside `kind`.
1010
- `AppError` stores messages as `Cow<'static, str>` to avoid unnecessary allocations.
1111

12+
### Documentation
13+
- Clarified how `config::ConfigError` converts into `AppErrorKind::Config`.
14+
- Documented that `MultipartError` maps to `AppErrorKind::BadRequest` in the Axum adapter.
15+
16+
### Tests
17+
- Added unit test verifying `config::ConfigError` mapping.
18+
- Added Axum test asserting `MultipartError` becomes `AppErrorKind::BadRequest` and preserves the message.
19+
- Expanded Actix test to check JSON body and `Retry-After`/`WWW-Authenticate` headers.
20+
- Covered fallback classification of unknown messages as `TurnkeyErrorKind::Service`.
21+
1222
## [0.3.3] - 2025-09-11
1323
### Added
1424
- `ErrorResponse::status_code()` exposing validated `StatusCode`.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ utoipa = "5"
186186
- `sqlx::Error` → NotFound/Database
187187
- `redis::RedisError` → Cache
188188
- `reqwest::Error` → Timeout/Network/ExternalApi
189+
- `axum::extract::multipart::MultipartError` → BadRequest
189190
- `validator::ValidationErrors` → Validation
190191
- `config::ConfigError` → Config
191192
- `tokio::time::error::Elapsed` → Timeout

0 commit comments

Comments
 (0)