fix(admin): treat 204 as successful (#26)

This commit is contained in:
hampus-fluxer
2026-01-05 03:22:54 +01:00
committed by GitHub
parent 11ec2e63b3
commit 9fdc374443

View File

@@ -104,6 +104,7 @@ pub fn admin_post_with_audit(
case httpc.send(req) {
Ok(resp) if resp.status == 200 -> Ok(Nil)
Ok(resp) if resp.status == 204 -> Ok(Nil)
Ok(resp) if resp.status == 401 -> Error(Unauthorized)
Ok(resp) if resp.status == 403 -> {
let message_decoder = {