Artin-Schreier curves and codes