Closed Indrazar closed 1 year ago
Requesting http://127.0.0.1:3000/404
also results in a 200 (OK) rather than a 404.
Both the lack of 404 and the error handling will be fixed after this PR or something similar is pulled.
closed by 44191fc989e64691d28c5cea6d318d3f8b2bb094
Currently when requesting a file which is not available the 404 page is blank. This is due to
error_template
being called withNone
.Relevant lines in fileserv.rs: https://github.com/Indrazar/start-axum/blob/main/src/fileserv.rs#L25 https://github.com/Indrazar/start-axum/blob/main/src/fileserv.rs#L30