add error code to TimeoutException, where available