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 | ce629a951580095bc9373370e28217d18acdff3e (patch) | |
| tree | aa2b16ffd9e8dd4aa093e8089cee88904a3e8880 /src/api/mod.rs | |
| parent | d69a8e1daab1103ca33e7f87ce0986096fe9961b (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 => { |
