Skip to main content

prepare_error

Function prepare_error 

pub fn prepare_error(data: &[u8]) -> (Id<'_>, ErrorCode)
Available on crate feature server-core only.
Expand description

Distinguish malformed JSON from an invalid request and recover its [Id] when possible.