Expand description

Converting custom error codes to enums.

Traits

Allows custom errors to be decoded back to their original enum.