mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-16 21:48:10 -07:00
global: snapshot
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use aide::OperationOutput;
|
||||
use axum::{
|
||||
http::{StatusCode, header},
|
||||
response::{IntoResponse, Response},
|
||||
@@ -157,6 +158,10 @@ impl From<BrkError> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl OperationOutput for Error {
|
||||
type Inner = ();
|
||||
}
|
||||
|
||||
impl IntoResponse for Error {
|
||||
fn into_response(self) -> Response {
|
||||
let body = build_error_body(self.status, self.code, self.message);
|
||||
|
||||
Reference in New Issue
Block a user