reordered error-codes and removed error-codes that are no longer in use.