fix: typo in public error API