activitypub-federation-rust/examples/local_federation/axum/mod.rs
2023-02-19 21:26:01 +09:00

11 lines
273 B
Rust

use crate::error::Error;
use ::http::StatusCode;
use axum::response::{IntoResponse, Response};
pub mod http;
impl IntoResponse for Error {
fn into_response(self) -> Response {
(StatusCode::INTERNAL_SERVER_ERROR, format!("{}", self.0)).into_response()
}
}