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 | 7a5a7408179c5fe9943bd2ce60295e86f1afaa40 (patch) | |
| tree | 166284a6b05f1f3e5d5166c38eda33088ae5461b /src/api | |
| parent | b4aa16f2a3c3f9dc0d4eb6e7399bd7ffe269d669 (diff) | |
document: reject writes during rejoin
Diffstat (limited to 'src/api')
| -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(); |
