split error constants into package