Skip to main content

build_error_response

Function build_error_response 

Source
pub fn build_error_response(
    request_id: u64,
    message: &str,
    code: &str,
) -> Vec<u8> ⓘ
Expand description

Build a standard error response.

Many RPC services share a common error format. This helper creates a consistent error response structure.