pub type EndpointResponse = Result<EndpointPayload, DispatchError>;
Response for the message request.
enum EndpointResponse { Ok(Vec<u8>), Err(DispatchError), }
Contains the success value
Contains the error value