diff options
| author | tv <tv@krebsco.de> | 2026-11-01 22:29:07 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 22:29:07 +0100 |
| commit | b9b54f318a7f7892a9f6e2a4f4fcf2a276492b8c (patch) | |
| tree | 713f4de7df8f7b89e0eece3f0f2fba81e65c48d2 /src/api/mod.rs | |
| parent | deea3053154301308c4a7217b2f741f4e6dd5f1f (diff) | |
api: allow reading past versions
Diffstat (limited to 'src/api/mod.rs')
| -rw-r--r-- | src/api/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs index b1f865a..8ce855e 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -204,7 +204,7 @@ pub(crate) fn store_status(error: StoreError, context: &str) -> ApiError { StoreError::Conflict | StoreError::NotAList | StoreError::PastTheEnd { .. } => { StatusCode::CONFLICT } - StoreError::NotFound => StatusCode::NOT_FOUND, + StoreError::NotFound | StoreError::UnknownHeads => StatusCode::NOT_FOUND, StoreError::Rejoining => StatusCode::SERVICE_UNAVAILABLE, other => { error!(error = %format!("{other:#}"), "{context}"); |
