char/live.umm.gay

git clone https://git.t4t.associates/char/live.umm.gay

videogame hacker[wish-server-rs] Refactor :)e154831

main
285 B11 linesraw
1use axum::{
2    http::StatusCode,
3    response::{IntoResponse, Response},
4};
5use std::fmt::Display;
6use tracing::error;
7
8pub fn log_http_error<E: Display>(status_code: StatusCode, error: E) -> Response {
9    error!("{error}");
10    (status_code, format!("{}", error)).into_response()
11}