Arduino_CAN device error state

Hi everyone, I'm developing a CAN bus project and for this purpose I bought an R4 minima since I wanted to take advantage of the R4 CAN native support. While I have used other CAN devices that are based on the MCP2515 or STM32 chips, I don't have any past experience with c++ or arduino so I'm having an hard time understanding if is it possible to get somehow the state of the device (error-active/ bus-off / etc...) or the error happening on the bus (bit stuffing/ bit error/ etc..) from the arduino itself. In some research papers, older arduino versions were used specifically because this kind of information was visible, and if I recall correctly, even the TEC was visible. If this is not possible, do you know any other libraries compatible with the r4? Do you think it would be much trouble to modify/rewrite the Arduino_CAN?