mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-06-07 07:49:26 +00:00
12 lines
273 B
Rust
12 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()
|
|
}
|
|
}
|