#6719 [BUG] Error code is not propagated properly from users exceptions
Issue created by
andresgomezfrr
### Flyte & Flytekit version
Latest
### Describe the bug
The error_code is not propagated properly from the users defined exception.
### Expected behavior
Propagate the user's defined error_code properly.
### Additional context to reproduce
No response
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flyte