removing unnecessary error codes, and making lower case errors.