buildError

fun buildError(transactionId: ByteArray, message: String, code: Int = ERROR_PROTOCOL): Entry

Build an error response: {t, y:"e", e:[code, message]}. Direct port of incoming_error(entry&, char const*, int).