Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ All notable changes to this project will be documented in this file.
- `AppError::log` now includes the stable `code` field alongside `kind`.
- `AppError` stores messages as `Cow<'static, str>` to avoid unnecessary allocations.

### Documentation
- Clarified how `config::ConfigError` converts into `AppErrorKind::Config`.
- Documented that `MultipartError` maps to `AppErrorKind::BadRequest` in the Axum adapter.

### Tests
- Added unit test verifying `config::ConfigError` mapping.
- Added Axum test asserting `MultipartError` becomes `AppErrorKind::BadRequest` and preserves the message.
- Expanded Actix test to check JSON body and `Retry-After`/`WWW-Authenticate` headers.
- Covered fallback classification of unknown messages as `TurnkeyErrorKind::Service`.

## [0.3.3] - 2025-09-11
### Added
- `ErrorResponse::status_code()` exposing validated `StatusCode`.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ utoipa = "5"
- `sqlx::Error` → NotFound/Database
- `redis::RedisError` → Cache
- `reqwest::Error` → Timeout/Network/ExternalApi
- `axum::extract::multipart::MultipartError` → BadRequest
- `validator::ValidationErrors` → Validation
- `config::ConfigError` → Config
- `tokio::time::error::Elapsed` → Timeout
Expand Down
Loading