added error codes and updated copyright year