1 2 3 4 5 6 7 8 9 10
use axum::{ body::Body, http::{Request, StatusCode}, response::IntoResponse, }; #[tracing::instrument] pub async fn not_found(request: Request<Body>) -> impl IntoResponse { (StatusCode::NOT_FOUND, "404 - Not Found") }