refactor(error): move RwError
from common
to frontend
#14953
+501
−590
Merged