I’ve just connected pump straight to mains to check – though you’ll need a mains lead with spade connectors on the end which is kind of a dangerous thing to have, so I couldn’t possibly recommend doing that (seriously, you need to know what you’re doing before playing with mains electricity – always disconnect the plug end from the mains before messing with the live bits).
Though it never has been the pump which is faulty – normally it’s just a blockage somewhere. Also worth noting that error codes can be deceptive – with our old one it gave a code which was supposedly related to the door latch, but having checked that (and wired directly across the contacts to isolate it) and even gone as far as replacing the main PCB I eventually discovered that the fault can also be caused by worn motor brushes 🙄