Skip to main content

error_response

Function error_response 

Source
pub fn error_response(id: &Value, code: i64, message: &str) -> Vec<u8> 
Expand description

Build a JSON-RPC 2.0 error response as bytes. id can be a request id or Value::Null if the request id couldn’t be parsed.