Put error types in a separate file