chore: send not found text when 404

This commit is contained in:
sigoden 2022-06-18 08:03:48 +08:00
parent af866aaaf4
commit df48021757

View file

@ -1034,6 +1034,7 @@ fn status_forbid(res: &mut Response) {
fn status_not_found(res: &mut Response) {
*res.status_mut() = StatusCode::NOT_FOUND;
*res.body_mut() = Body::from("Not Found");
}
fn status_no_content(res: &mut Response) {