The old error design didn't allow us to reuse error `code`, `message` etc. With this refactor, these parts of the error body can be reused for other potential features. This also removes the `ErrorCode` type and replace the types with Text codes.
The old error design didn't allow us to reuse error `code`, `message` etc. With this refactor, these parts of the error body can be reused for other potential features. This also removes the `ErrorCode` type and replace the types with Text codes.