fix(admin): treat 204 as successful (#26)
This commit is contained in:
parent
11ec2e63b3
commit
9fdc374443
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user