Get Error Code from exception

Hello ,

How to get the error code from UiPath.Core.Activities.OrchestratorHttpException ?
I want properly catch specific exception like : “Error creating Transaction. Duplicate Reference. Error code: 1016” without using e.Message.contains(“1016”) :

Could you help me ?