It's possible with RPD workflow to conditionally route a job based on whether it errors or not.
A next-level capability would be to conditionally route the job based on the nature of the error. This can be difficult because sometimes a job fails with multiple errors/error codes. This capability would determine the "dominant" error condition and enable conditional branch logic driven by that error condition.
One consideration: Some errors could be coming from systems external to RPD, which would make it difficult to establish primacy when multiple errors occur.
A crude mockup/example is attached.