This is not natively possible with Tyk, it would be the client’s responsibility to retry on failure.
You could however achieve this by offloading to a custom plugin. Python, Lua, Javascript or gRPC.
Something to consider is the complexity of doing this, eg which error response codes are acceptable to perform retry, if it retries on timeout, do you retry on post/put/patch requests - which could be dangerous?