web3-proxy/web3_proxy/src/frontend/errors.rs

8 lines
180 B
Rust

use crate::errors::Web3ProxyError;
use axum::response::{IntoResponse, Response};
#[inline]
pub async fn handler_404() -> Response {
Web3ProxyError::NotFound.into_response()
}