diff options
| author | tv <tv@krebsco.de> | 2026-11-01 13:19:04 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 13:19:04 +0100 |
| commit | 59833811cce25f03efbdc889f806ad75804942ab (patch) | |
| tree | 5a36fcbf81333fac9374b01ecacca04ef8590179 /src/api/mod.rs | |
| parent | 5decfdba9e8985b72301acb288e26a6d1de50d58 (diff) | |
document: reject writes during rejoin
Diffstat (limited to 'src/api/mod.rs')
| -rw-r--r-- | src/api/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs index 528df35..31f4fea 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -202,6 +202,7 @@ pub(crate) fn store_status(error: StoreError, context: &str) -> ApiError { StatusCode::CONFLICT } StoreError::NotFound => StatusCode::NOT_FOUND, + StoreError::Rejoining => StatusCode::SERVICE_UNAVAILABLE, other => { error!(error = %format!("{other:#}"), "{context}"); return StatusCode::INTERNAL_SERVER_ERROR.into(); |
