ErrorCode

### Description
Removed the type ErrorCode.
StatusCode replaces the old ErrorCode instances.