Expose more errors.

Decoding errors are now exposed as `Err...` variables so applications can check for them.