implemented error codes and extensions types