Generalized algebraic geometric codes from maximal curves