Function prepare_error
pub fn prepare_error(data: &[u8]) -> (Id<'_>, ErrorCode)Expand description
Distinguish malformed JSON from an invalid request and recover its [Id] when possible.
pub fn prepare_error(data: &[u8]) -> (Id<'_>, ErrorCode)Distinguish malformed JSON from an invalid request and recover its [Id] when possible.