Add error_codes to __all__.
Standardise on lists rather than tuples for __all__.