diff options
| author | tv <tv@krebsco.de> | 2026-11-02 10:35:38 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-02 10:35:38 +0100 |
| commit | 55d33b0f0bc3aa4497842355684da2efa51a6011 (patch) | |
| tree | 8ec904b40f95f44bed71a60641b497b41adbb6a1 /src/api/mod.rs | |
| parent | 58d574166fef1246f367009546358703e16d7f7e (diff) | |
api: types are sticky
Diffstat (limited to 'src/api/mod.rs')
| -rw-r--r-- | src/api/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs index 713f248..ede1cfa 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -211,7 +211,8 @@ pub(crate) fn store_status(error: StoreError, context: &str) -> ApiError { StoreError::Conflict | StoreError::NotAList | StoreError::PastTheEnd { .. } - | StoreError::NotACounter => StatusCode::CONFLICT, + | StoreError::NotACounter + | StoreError::Retyping(_) => StatusCode::CONFLICT, StoreError::NotFound | StoreError::UnknownHeads => StatusCode::NOT_FOUND, StoreError::Rejoining => StatusCode::SERVICE_UNAVAILABLE, other => { |
