rv40: Return more meaningful error codes