You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.0 KiB
2.0 KiB
| title | status | type | priority | created_at | updated_at | blocked_by | ||
|---|---|---|---|---|---|---|---|---|
| 'Implement error handling — consistent {"error": "..."} envelope for 400/403/404/422/500' | completed | task | normal | 2026-03-10T23:32:11Z | 2026-03-10T23:32:19Z |
|
Shared types and utilities are in src/lib.rs — code placed there must compile for both the host target and wasm32-unknown-unknown.
All error responses must use a consistent JSON envelope: {"error": "message"}. The API returns errors with appropriate HTTP status codes: 400 Bad Request, 403 Forbidden (wrong auth), 404 Not Found, 422 Unprocessable Entity (validation), 500 Internal Server Error.
cargo fmt
cargo check
cargo clippy
cargo test
`feat(quotesdb): implement consistent error envelope type for all API responses`