diff options
| author | tv <tv@krebsco.de> | 2026-11-02 11:04:15 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-02 11:04:15 +0100 |
| commit | 694661d7477e4bd1e8d7ec96dcc37742d1b5ca3f (patch) | |
| tree | b9b4766e689913b6322bb356782756d66383be5f /src/api/mod.rs | |
| parent | 177c0a5b3b80fe2d502f31b7badd220a1cf5ed7c (diff) | |
api: add type casts
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 ede1cfa..9bb2bed 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -212,7 +212,8 @@ pub(crate) fn store_status(error: StoreError, context: &str) -> ApiError { | StoreError::NotAList | StoreError::PastTheEnd { .. } | StoreError::NotACounter - | StoreError::Retyping(_) => StatusCode::CONFLICT, + | StoreError::Retyping(_) + | StoreError::NotCastable { .. } => StatusCode::CONFLICT, StoreError::NotFound | StoreError::UnknownHeads => StatusCode::NOT_FOUND, StoreError::Rejoining => StatusCode::SERVICE_UNAVAILABLE, other => { |
