diff options
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 => { |
