How to use routers in error handling for handling specific error types

I have an issue where an API call to create a record (ShipStation Create Order) will occasionally return a timeout error. However, often the call is successful in creating the record despite the timeout error being returned. The existing handler (a break module) retries the API call up to three times at five minute intervals, but if the initial call was successful, it will create duplicate records (ShipStation allows for duplicate order numbers). So if the API call errors with a timeout, I need to check ShipStation to see whether the record in fact exists: if it does, ignore the error; if it doesn’t, retry the API call.

I’ve read the docs and searched the community posts. I think I have a solution, but testing is a challenge given the specificity of the handling (and throwing specific errors doesn’t appear to be supported just yet).

Would this configuration do what I want it to?