1 2 3 4 5 6 7
use axum::http::StatusCode; use axum::response::IntoResponse; /// An endpoint function that always responds with `404 Not Found`. pub async fn not_found() -> impl IntoResponse { StatusCode::NOT_FOUND }