mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 17:13:02 +03:00
chore: send not found text when 404
This commit is contained in:
@@ -1034,6 +1034,7 @@ fn status_forbid(res: &mut Response) {
|
|||||||
|
|
||||||
fn status_not_found(res: &mut Response) {
|
fn status_not_found(res: &mut Response) {
|
||||||
*res.status_mut() = StatusCode::NOT_FOUND;
|
*res.status_mut() = StatusCode::NOT_FOUND;
|
||||||
|
*res.body_mut() = Body::from("Not Found");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn status_no_content(res: &mut Response) {
|
fn status_no_content(res: &mut Response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user