chore: send not found text when 404
This commit is contained in:
parent
af866aaaf4
commit
df48021757
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue