Moved CodeErrorType to own file