summaryrefslogtreecommitdiffstats
path: root/src/generated/methods.rs
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-10-23 20:23:32 +0200
committerCyborus <cyborus@cyborus.xyz>2024-10-23 20:23:32 +0200
commit54492a30a2b980bd76b84d60ed7d1b39f4b3aaa1 (patch)
treed06f02b4a14504097fa109a897924091456fa14d /src/generated/methods.rs
parentfeat: make quota subjects an enum (diff)
downloadforgejo-api-54492a30a2b980bd76b84d60ed7d1b39f4b3aaa1.tar.xz
forgejo-api-54492a30a2b980bd76b84d60ed7d1b39f4b3aaa1.zip
fix: deleting rule from quota group responds with 204
Diffstat (limited to 'src/generated/methods.rs')
-rw-r--r--src/generated/methods.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generated/methods.rs b/src/generated/methods.rs
index bb14bdf..f49d61f 100644
--- a/src/generated/methods.rs
+++ b/src/generated/methods.rs
@@ -321,7 +321,7 @@ impl crate::Forgejo {
.build()?;
let response = self.execute(request).await?;
match response.status().as_u16() {
- 201 => Ok(()),
+ 204 => Ok(()),
_ => Err(ForgejoError::UnexpectedStatusCode(response.status())),
}
}