add error codes and responses template