refactoring: Moved error codes to single file