mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-14 14:02:50 +00:00
Add Status Codes to Error Pages
This commit is contained in:
parent
0f88936909
commit
cef3266186
4 changed files with 4 additions and 4 deletions
|
@ -46,7 +46,7 @@ pub async fn render(sub_name: String, sort: Option<String>, ends: (Option<String
|
|||
}
|
||||
.render()
|
||||
.unwrap();
|
||||
Ok(HttpResponse::Ok().content_type("text/html").body(s))
|
||||
Ok(HttpResponse::Ok().status(actix_web::http::StatusCode::NOT_FOUND).content_type("text/html").body(s))
|
||||
} else {
|
||||
let mut sub = sub_result.unwrap();
|
||||
let items = items_result.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue